mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Moving to a class-based approach
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
var util_1 = require('../util');
|
||||
var PLUGIN_REF = 'navigator.camera';
|
||||
var Camera = (function () {
|
||||
function Camera() {
|
||||
}
|
||||
Camera.getPicture = util_1.promisify(PLUGIN_REF, 'getPicture', 0, 1);
|
||||
return Camera;
|
||||
})();
|
||||
exports.Camera = Camera;
|
||||
Reference in New Issue
Block a user