From f3a37f1d38179032e6374332261af24975237dc0 Mon Sep 17 00:00:00 2001 From: evgeny Date: Tue, 25 Dec 2018 18:16:30 +0300 Subject: initial commit --- index.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 index.js (limited to 'index.js') 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) + } +} -- cgit v1.2.3