mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 11:03:01 +08:00
11 lines
305 B
JavaScript
11 lines
305 B
JavaScript
var util_1 = require('../util');
|
|
var PLUGIN_REF = 'navigator.camera';
|
|
exports.Camera = {
|
|
// Metadata
|
|
name: 'Camera',
|
|
plugin: 'cordova-plugin-camera',
|
|
// Methods
|
|
getPicture: util_1.promisify(PLUGIN_REF, 'getPicture', 0, 1),
|
|
cleanup: util_1.promisify(PLUGIN_REF, 'cleanup', 0, 1)
|
|
};
|