diff options
author | evgeny <me@ch1p.com> | 2018-12-25 18:16:30 +0300 |
---|---|---|
committer | evgeny <me@ch1p.com> | 2018-12-25 18:16:30 +0300 |
commit | f3a37f1d38179032e6374332261af24975237dc0 (patch) | |
tree | e7ea2eef0cb37e2ad6ac4e1a44301585060a045c /index.js |
initial commit
Diffstat (limited to 'index.js')
-rwxr-xr-x | index.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/index.js b/index.js new file mode 100755 index 0000000..66bc582 --- /dev/null +++ b/index.js @@ -0,0 +1,19 @@ +const bin = require('./build/Release/mojave-permissions') + +module.exports = { + /** + * @param {String} mediaType + * @return {String} + */ + getMediaAccessStatus(mediaType) { + return bin.getMediaAccessStatus(mediaType) + }, + + /** + * @param {String} mediaType + * @param {Function} callback + */ + askForMediaAccess(mediaType, callback) { + return bin.askForMediaAccess(mediaType, callback) + } +} |