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:
Vendored
+6
-3
@@ -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;
|
||||
};
|
||||
|
||||
Vendored
+8
-7
@@ -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)
|
||||
};
|
||||
|
||||
Vendored
+13
@@ -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;
|
||||
};
|
||||
Vendored
+17
@@ -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')
|
||||
};
|
||||
Reference in New Issue
Block a user