diff options
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) + } +} |