Lots o refactor

This commit is contained in:
Max Lynch
2015-11-28 18:26:55 -06:00
parent 044a824f29
commit 5b754390f5
35 changed files with 653 additions and 356 deletions
+15 -6
View File
@@ -1,13 +1,22 @@
import {promisify} from '../util';
import {Plugin, Cordova} from './plugin';
let PLUGIN_REF = 'navigator.camera';
export var Camera = {
// Metadata
@Plugin({
name: 'Camera',
plugin: 'cordova-plugin-camera',
pluginRef: 'navigator.camera'
})
export class Camera {
@Cordova({
successIndex: 0,
errIndex: 1
})
static getPicture;
// Methods
getPicture: promisify(PLUGIN_REF, 'getPicture', 0, 1),
cleanup: promisify(PLUGIN_REF, 'cleanup', 0, 1)
@Cordova({
successIndex: 0,
errIndex: 1
})
static cleanup;
}