feat: expose app accessibility status api (#16119)
* feat: expose app accessibility status api * fix prompt
This commit is contained in:
parent
dc93d94bc8
commit
a58d989b60
4 changed files with 15 additions and 0 deletions
|
@ -327,6 +327,12 @@ You can use the `setAppLevelAppearance` API to set this value.
|
|||
Sets the appearance setting for your application, this should override the
|
||||
system default and override the value of `getEffectiveAppearance`.
|
||||
|
||||
### `systemPreferences.isTrustedAccessibilityClient(prompt)` _macOS_
|
||||
|
||||
* `prompt` Boolean - whether or not the user will be informed via prompt if the current process is untrusted.
|
||||
|
||||
Returns `Boolean` - `true` if the current process is a trusted accessibility client and `false` if it is not.
|
||||
|
||||
### `systemPreferences.getMediaAccessStatus(mediaType)` _macOS_
|
||||
|
||||
* `mediaType` String - `microphone` or `camera`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue