mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Demo
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
|
||||
import {promisify} from '../util';
|
||||
|
||||
let PLUGIN_REF = 'navigator.camera';
|
||||
|
||||
export class Camera {
|
||||
static getPicture = promisify(PLUGIN_REF, 'getPicture', 0, 1)
|
||||
export var Camera = {
|
||||
// Metadata
|
||||
name: 'Camera',
|
||||
plugin: 'cordova-plugin-camera',
|
||||
|
||||
// Methods
|
||||
getPicture: promisify(PLUGIN_REF, 'getPicture', 0, 1),
|
||||
cleanup: promisify(PLUGIN_REF, 'cleanup', 0, 1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user