node-mac-permissions
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -37,4 +37,5 @@ const permissions = require('bindings')('permissions.node') | ||
askForScreenCaptureAccess: permissions.askForScreenCaptureAccess, | ||
askForAccessibilityAccess: permissions.askForAccessibilityAccess, | ||
askForMediaAccess, | ||
getAuthStatus | ||
} |
{ | ||
"name": "node-mac-permissions", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "A native node module to manage system permissions on macOS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -150,2 +150,3 @@ [![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/) | ||
``` | ||
## `permissions.askForScreenCaptureAccess()` | ||
@@ -160,2 +161,13 @@ | ||
askForScreenCaptureAccess() | ||
``` | ||
``` | ||
## `permissions.askForAccessibilityAccess()` | ||
There is no API for programmatically requesting Accessibility access on macOS at this time, and so calling this method will trigger opening of System Preferences at the Accessibility pane of Security and Privacy. | ||
Example: | ||
```js | ||
const { askForAccessibilityAccess } = require('node-mac-permissions') | ||
askForAccessibilityAccess() | ||
``` |
Sorry, the diff of this file is not supported yet
24386
74
172
8