summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorevgeny <me@ch1p.com>2018-12-25 18:16:30 +0300
committerevgeny <me@ch1p.com>2018-12-25 18:16:30 +0300
commitf3a37f1d38179032e6374332261af24975237dc0 (patch)
treee7ea2eef0cb37e2ad6ac4e1a44301585060a045c /index.js
initial commit
Diffstat (limited to 'index.js')
-rwxr-xr-xindex.js19
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)
+ }
+}