This commit is contained in:
Max Lynch
2015-11-28 16:17:04 -06:00
parent f7f1acb1b6
commit 33b56579b0
84 changed files with 691 additions and 80 deletions
+6 -3
View File
@@ -1,3 +1,6 @@
export declare class Camera {
static getPicture: (...args: any[]) => any;
}
export declare var Camera: {
name: string;
plugin: string;
getPicture: (...args: any[]) => any;
cleanup: (...args: any[]) => any;
};
+8 -7
View File
@@ -1,9 +1,10 @@
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;
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)
};
+13
View File
@@ -0,0 +1,13 @@
export declare var StatusBar: {
name: string;
plugin: string;
overlaysWebView: (...args: any[]) => any;
styleDefault: (...args: any[]) => any;
styleLightContent: (...args: any[]) => any;
styleBlackTranslucent: (...args: any[]) => any;
styleBlackOpaque: (...args: any[]) => any;
backgroundColorByName: (...args: any[]) => any;
backgroundColorByHexString: (...args: any[]) => any;
hide: (...args: any[]) => any;
show: (...args: any[]) => any;
};
+17
View File
@@ -0,0 +1,17 @@
var util_1 = require('../util');
var PLUGIN_REF = 'StatusBar';
exports.StatusBar = {
// Metadata
name: 'StatusBar',
plugin: 'cordova-plugin-statusbar',
// Methods
overlaysWebView: util_1.wrap(PLUGIN_REF, 'overlaysWebView'),
styleDefault: util_1.wrap(PLUGIN_REF, 'styleDefault'),
styleLightContent: util_1.wrap(PLUGIN_REF, 'styleLightContent'),
styleBlackTranslucent: util_1.wrap(PLUGIN_REF, 'styleBlackTranslucent'),
styleBlackOpaque: util_1.wrap(PLUGIN_REF, 'styleBlackOpaque'),
backgroundColorByName: util_1.wrap(PLUGIN_REF, 'backgroundColorByName'),
backgroundColorByHexString: util_1.wrap(PLUGIN_REF, 'backgroundColorByHexString'),
hide: util_1.wrap(PLUGIN_REF, 'hide'),
show: util_1.wrap(PLUGIN_REF, 'show')
};