chore(): update dist
This commit is contained in:
parent
bf28669e1a
commit
bd72960a99
15
dist/plugins/camera.d.ts
vendored
15
dist/plugins/camera.d.ts
vendored
@ -1,3 +1,18 @@
|
|||||||
|
/**
|
||||||
|
* Take a photo or capture video.
|
||||||
|
*
|
||||||
|
* Requires Cordova plugin: `cordova-plugin-camera`. For more info, please see the [Cordova Camera Plugin Docs](https://github.com/apache/cordova-plugin-camera).
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
* ```js
|
||||||
|
* Camera.getPicture(options).then((imageData) => {
|
||||||
|
* // imageData is either a base64 encoded string or a file URI
|
||||||
|
* // If it's base64:
|
||||||
|
* let base64Image = "data:image/jpeg;base64," + imageData;
|
||||||
|
* }, (err) => {
|
||||||
|
* });
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
export declare class Camera {
|
export declare class Camera {
|
||||||
static getPicture(options: any): void;
|
static getPicture(options: any): void;
|
||||||
static cleanup(): void;
|
static cleanup(): void;
|
||||||
|
15
dist/plugins/camera.js
vendored
15
dist/plugins/camera.js
vendored
@ -5,6 +5,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||||
};
|
};
|
||||||
var plugin_1 = require('./plugin');
|
var plugin_1 = require('./plugin');
|
||||||
|
/**
|
||||||
|
* Take a photo or capture video.
|
||||||
|
*
|
||||||
|
* Requires Cordova plugin: `cordova-plugin-camera`. For more info, please see the [Cordova Camera Plugin Docs](https://github.com/apache/cordova-plugin-camera).
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
* ```js
|
||||||
|
* Camera.getPicture(options).then((imageData) => {
|
||||||
|
* // imageData is either a base64 encoded string or a file URI
|
||||||
|
* // If it's base64:
|
||||||
|
* let base64Image = "data:image/jpeg;base64," + imageData;
|
||||||
|
* }, (err) => {
|
||||||
|
* });
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
var Camera = (function () {
|
var Camera = (function () {
|
||||||
function Camera() {
|
function Camera() {
|
||||||
}
|
}
|
||||||
|
2
dist/plugins/camera.js.map
vendored
2
dist/plugins/camera.js.map
vendored
@ -1 +1 @@
|
|||||||
{"version":3,"file":"camera.js","sourceRoot":"","sources":["../../src/plugins/camera.ts"],"names":["Camera","Camera.constructor","Camera.getPicture","Camera.cleanup"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAcAC,CAACA;IAJQD,iBAAUA,GAJjBA,UAIkBA,OAAWA,IAAEE,CAACA;;IAGzBF,cAAOA,GADdA,cACiBG,CAACA;;IAPlBH;QAACA,gBAAOA,CAACA;YACPA,6DAA6DA;YAC7DA,aAAaA,EAAEA,SAASA;SACzBA,CAACA;OACKA,oBAAUA,QAAeA;IAEhCA;QAACA,gBAAOA,EAAEA;OACHA,iBAAOA,QAAIA;IAbpBA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,QAAQA;YACdA,MAAMA,EAAEA,uBAAuBA;YAC/BA,SAASA,EAAEA,kBAAkBA;SAC9BA,CAACA;eAUDA;IAADA,aAACA;AAADA,CAACA,AAdD,IAcC;AATY,cAAM,SASlB,CAAA"}
|
{"version":3,"file":"camera.js","sourceRoot":"","sources":["../../src/plugins/camera.ts"],"names":["Camera","Camera.constructor","Camera.getPicture","Camera.cleanup"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;;;;;;;;;;;;;;GAcG;AACH;IAAAA;IAcAC,CAACA;IAJQD,iBAAUA,GAJjBA,UAIkBA,OAAWA,IAAEE,CAACA;;IAGzBF,cAAOA,GADdA,cACiBG,CAACA;;IAPlBH;QAACA,gBAAOA,CAACA;YACPA,6DAA6DA;YAC7DA,aAAaA,EAAEA,SAASA;SACzBA,CAACA;OACKA,oBAAUA,QAAeA;IAEhCA;QAACA,gBAAOA,EAAEA;OACHA,iBAAOA,QAAIA;IAbpBA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,QAAQA;YACdA,MAAMA,EAAEA,uBAAuBA;YAC/BA,SAASA,EAAEA,kBAAkBA;SAC9BA,CAACA;eAUDA;IAADA,aAACA;AAADA,CAACA,AAdD,IAcC;AATY,cAAM,SASlB,CAAA"}
|
17
dist/plugins/contacts.d.ts
vendored
17
dist/plugins/contacts.d.ts
vendored
@ -1,3 +1,20 @@
|
|||||||
|
/**
|
||||||
|
* Access and manage Contacts on the device.
|
||||||
|
*
|
||||||
|
* Requires plugin: `cordova-plugin-contacts`
|
||||||
|
* For full info, please see the [Cordova Contacts Docs](https://github.com/apache/cordova-plugin-contacts)
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
*
|
||||||
|
* ```js
|
||||||
|
* Contacts.save({
|
||||||
|
* displayName: "Mr. Ionitron"
|
||||||
|
* }).then((contact) => {}, (err) => {})
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* See the `save()` docs for a full list of fields.
|
||||||
|
*
|
||||||
|
*/
|
||||||
export declare class Contacts {
|
export declare class Contacts {
|
||||||
static create(fields: string[], options: any): void;
|
static create(fields: string[], options: any): void;
|
||||||
static find(fields: string[], options: any): void;
|
static find(fields: string[], options: any): void;
|
||||||
|
17
dist/plugins/contacts.js
vendored
17
dist/plugins/contacts.js
vendored
@ -5,6 +5,23 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||||
};
|
};
|
||||||
var plugin_1 = require('./plugin');
|
var plugin_1 = require('./plugin');
|
||||||
|
/**
|
||||||
|
* Access and manage Contacts on the device.
|
||||||
|
*
|
||||||
|
* Requires plugin: `cordova-plugin-contacts`
|
||||||
|
* For full info, please see the [Cordova Contacts Docs](https://github.com/apache/cordova-plugin-contacts)
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
*
|
||||||
|
* ```js
|
||||||
|
* Contacts.save({
|
||||||
|
* displayName: "Mr. Ionitron"
|
||||||
|
* }).then((contact) => {}, (err) => {})
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* See the `save()` docs for a full list of fields.
|
||||||
|
*
|
||||||
|
*/
|
||||||
var Contacts = (function () {
|
var Contacts = (function () {
|
||||||
function Contacts() {
|
function Contacts() {
|
||||||
}
|
}
|
||||||
|
2
dist/plugins/contacts.js.map
vendored
2
dist/plugins/contacts.js.map
vendored
@ -1 +1 @@
|
|||||||
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/plugins/contacts.ts"],"names":["Contacts","Contacts.constructor","Contacts.create","Contacts.find","Contacts.pickContact"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAsBAC,CAACA;IAVQD,eAAMA,GALbA,UAKcA,MAAeA,EAAEA,OAAWA,IAAEE,CAACA;;IAMtCF,aAAIA,GAJXA,UAIYA,MAAeA,EAAEA,OAAWA,IAAEG,CAACA;;IAGpCH,oBAAWA,GADlBA,cACqBI,CAACA;;IAdtBJ;QAACA,gBAAOA,CAACA;YACPA,YAAYA,EAAEA,CAACA;YACfA,UAAUA,EAAEA,CAACA;SACdA,CAACA;OAEKA,kBAAMA,QAAgCA;IAE7CA;QAACA,gBAAOA,CAACA;YACPA,YAAYA,EAAEA,CAACA;YACfA,UAAUA,EAAEA,CAACA;SACdA,CAACA;OACKA,gBAAIA,QAAgCA;IAE3CA;QAACA,gBAAOA,EAAEA;OACHA,uBAAWA,QAAIA;IArBxBA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,UAAUA;YAChBA,MAAMA,EAAEA,yBAAyBA;YACjCA,SAASA,EAAEA,oBAAoBA;YAC/BA,IAAIA,EAAEA,mDAAmDA;SAC1DA,CAACA;iBAiBDA;IAADA,eAACA;AAADA,CAACA,AAtBD,IAsBC;AAhBY,gBAAQ,WAgBpB,CAAA"}
|
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/plugins/contacts.ts"],"names":["Contacts","Contacts.constructor","Contacts.create","Contacts.find","Contacts.pickContact"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;;;;;;;;;;;;;;;;GAgBG;AAEH;IAAAA;IA+DAC,CAACA;IAzBQD,eAAMA,GA/BbA,UA+BcA,MAAeA,EAAEA,OAAWA,IAAEE,CAACA;;IAqBtCF,aAAIA,GAnBXA,UAmBYA,MAAeA,EAAEA,OAAWA,IAAEG,CAACA;;IAGpCH,oBAAWA,GADlBA,cACqBI,CAACA;;IAvDtBJ;QAACA,gBAAOA,CAACA;YACPA,YAAYA,EAAEA,CAACA;YACfA,UAAUA,EAAEA,CAACA;SACdA,CAACA;OA4BKA,kBAAMA,QAAgCA;IAE7CA;QAACA,gBAAOA,CAACA;YACPA,YAAYA,EAAEA,CAACA;YACfA,UAAUA,EAAEA,CAACA;SACdA,CAACA;OAgBKA,gBAAIA,QAAgCA;IAE3CA;QAACA,gBAAOA,EAAEA;OACHA,uBAAWA,QAAIA;IA9DxBA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,UAAUA;YAChBA,MAAMA,EAAEA,yBAAyBA;YACjCA,SAASA,EAAEA,oBAAoBA;YAC/BA,IAAIA,EAAEA,mDAAmDA;SAC1DA,CAACA;iBA0DDA;IAADA,eAACA;AAADA,CAACA,AA/DD,IA+DC;AAzDY,gBAAQ,WAyDpB,CAAA"}
|
14
dist/plugins/device.d.ts
vendored
14
dist/plugins/device.d.ts
vendored
@ -1,3 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* Access information about the underlying device and platform.
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
* ```js
|
||||||
|
* let info = Device.getDevice();
|
||||||
|
* // Device sits below
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
export declare class Device {
|
export declare class Device {
|
||||||
|
/**
|
||||||
|
* Returns the whole device object.
|
||||||
|
* @see https://github.com/apache/cordova-plugin-device
|
||||||
|
* @returns {Object} The device object.
|
||||||
|
*/
|
||||||
static getDevice(): any;
|
static getDevice(): any;
|
||||||
}
|
}
|
||||||
|
14
dist/plugins/device.js
vendored
14
dist/plugins/device.js
vendored
@ -5,9 +5,23 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||||
};
|
};
|
||||||
var plugin_1 = require('./plugin');
|
var plugin_1 = require('./plugin');
|
||||||
|
/**
|
||||||
|
* Access information about the underlying device and platform.
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
* ```js
|
||||||
|
* let info = Device.getDevice();
|
||||||
|
* // Device sits below
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
var Device = (function () {
|
var Device = (function () {
|
||||||
function Device() {
|
function Device() {
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Returns the whole device object.
|
||||||
|
* @see https://github.com/apache/cordova-plugin-device
|
||||||
|
* @returns {Object} The device object.
|
||||||
|
*/
|
||||||
Device.getDevice = function () {
|
Device.getDevice = function () {
|
||||||
return window.device;
|
return window.device;
|
||||||
};
|
};
|
||||||
|
2
dist/plugins/device.js.map
vendored
2
dist/plugins/device.js.map
vendored
@ -1 +1 @@
|
|||||||
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../src/plugins/device.ts"],"names":["Device","Device.constructor","Device.getDevice"],"mappings":";;;;;;AAAA,uBAAqC,UAAU,CAAC,CAAA;AAIhD;IAAAA;IAWAC,CAACA;IAHQD,gBAASA,GADhBA;QAEEE,MAAMA,CAACA,MAAMA,CAACA,MAAMA,CAACA;IACvBA,CAACA;IAHDF;QAACA,uBAAcA;OACRA,mBAASA,QAEfA;IAVHA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,QAAQA;YACdA,MAAMA,EAAEA,uBAAuBA;YAC/BA,SAASA,EAAEA,QAAQA;SACpBA,CAACA;eAODA;IAADA,aAACA;AAADA,CAACA,AAXD,IAWC;AANY,cAAM,SAMlB,CAAA"}
|
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../src/plugins/device.ts"],"names":["Device","Device.constructor","Device.getDevice"],"mappings":";;;;;;AAAA,uBAAqC,UAAU,CAAC,CAAA;AAKhD;;;;;;;;GAQG;AAEH;IAAAA;IAgBAC,CAACA;IATDD;;;;OAIGA;IAEMA,gBAASA,GADhBA;QAEEE,MAAMA,CAACA,MAAMA,CAACA,MAAMA,CAACA;IACvBA,CAACA;IAHDF;QAACA,uBAAcA;OACRA,mBAASA,QAEfA;IAfHA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,QAAQA;YACdA,MAAMA,EAAEA,uBAAuBA;YAC/BA,SAASA,EAAEA,QAAQA;SACpBA,CAACA;eAYDA;IAADA,aAACA;AAADA,CAACA,AAhBD,IAgBC;AAXY,cAAM,SAWlB,CAAA"}
|
17
dist/plugins/geolocation.d.ts
vendored
17
dist/plugins/geolocation.d.ts
vendored
@ -1,3 +1,20 @@
|
|||||||
|
/**
|
||||||
|
* Get geolocation data.
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
* ```js
|
||||||
|
* Geolocation.getCurrentPosition().then((resp) => {
|
||||||
|
* //resp.coords.latitude
|
||||||
|
* //resp.coords.longitude
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* let watch = Geolocation.watchPosition();
|
||||||
|
* watch.source.subscribe((data) => {
|
||||||
|
* //data.coords.latitude
|
||||||
|
* //data.coords.longitude
|
||||||
|
* })
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
export declare class Geolocation {
|
export declare class Geolocation {
|
||||||
static getCurrentPosition(options: any): void;
|
static getCurrentPosition(options: any): void;
|
||||||
static watchPosition(options: any): void;
|
static watchPosition(options: any): void;
|
||||||
|
17
dist/plugins/geolocation.js
vendored
17
dist/plugins/geolocation.js
vendored
@ -5,6 +5,23 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||||
};
|
};
|
||||||
var plugin_1 = require('./plugin');
|
var plugin_1 = require('./plugin');
|
||||||
|
/**
|
||||||
|
* Get geolocation data.
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
* ```js
|
||||||
|
* Geolocation.getCurrentPosition().then((resp) => {
|
||||||
|
* //resp.coords.latitude
|
||||||
|
* //resp.coords.longitude
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* let watch = Geolocation.watchPosition();
|
||||||
|
* watch.source.subscribe((data) => {
|
||||||
|
* //data.coords.latitude
|
||||||
|
* //data.coords.longitude
|
||||||
|
* })
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
var Geolocation = (function () {
|
var Geolocation = (function () {
|
||||||
function Geolocation() {
|
function Geolocation() {
|
||||||
}
|
}
|
||||||
|
2
dist/plugins/geolocation.js.map
vendored
2
dist/plugins/geolocation.js.map
vendored
@ -1 +1 @@
|
|||||||
{"version":3,"file":"geolocation.js","sourceRoot":"","sources":["../../src/plugins/geolocation.ts"],"names":["Geolocation","Geolocation.constructor","Geolocation.getCurrentPosition","Geolocation.watchPosition"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAMzC;IAAAA;IAgBAC,CAACA;IATQD,8BAAkBA,GADzBA,UAC0BA,OAAWA,IAAEE,CAACA;;IAQjCF,yBAAaA,GALpBA,UAKqBA,OAAWA,IAAEG,CAACA;;IATnCH;QAACA,gBAAOA,EAAEA;OACHA,iCAAkBA,QAAeA;IAGxCA;QAACA,gBAAOA,CAACA;YACPA,aAAaA,EAAEA,SAASA;YACxBA,UAAUA,EAAEA,IAAIA;YAChBA,aAAaA,EAAEA,cAAcA;SAC9BA,CAACA;OACKA,4BAAaA,QAAeA;IAfrCA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,aAAaA;YACnBA,MAAMA,EAAEA,4BAA4BA;YACpCA,SAASA,EAAEA,uBAAuBA;SACnCA,CAACA;oBAYDA;IAADA,kBAACA;AAADA,CAACA,AAhBD,IAgBC;AAXY,mBAAW,cAWvB,CAAA"}
|
{"version":3,"file":"geolocation.js","sourceRoot":"","sources":["../../src/plugins/geolocation.ts"],"names":["Geolocation","Geolocation.constructor","Geolocation.getCurrentPosition","Geolocation.watchPosition"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAOzC;;;;;;;;;;;;;;;;GAgBG;AACH;IAAAA;IAgBAC,CAACA;IATQD,8BAAkBA,GADzBA,UAC0BA,OAAWA,IAAEE,CAACA;;IAQjCF,yBAAaA,GALpBA,UAKqBA,OAAWA,IAAEG,CAACA;;IATnCH;QAACA,gBAAOA,EAAEA;OACHA,iCAAkBA,QAAeA;IAGxCA;QAACA,gBAAOA,CAACA;YACPA,aAAaA,EAAEA,SAASA;YACxBA,UAAUA,EAAEA,IAAIA;YAChBA,aAAaA,EAAEA,cAAcA;SAC9BA,CAACA;OACKA,4BAAaA,QAAeA;IAfrCA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,aAAaA;YACnBA,MAAMA,EAAEA,4BAA4BA;YACpCA,SAASA,EAAEA,uBAAuBA;SACnCA,CAACA;oBAYDA;IAADA,kBAACA;AAADA,CAACA,AAhBD,IAgBC;AAXY,mBAAW,cAWvB,CAAA"}
|
4
dist/plugins/plugin.js
vendored
4
dist/plugins/plugin.js
vendored
@ -1,5 +1,5 @@
|
|||||||
var util_1 = require('../util');
|
var util_1 = require('../util');
|
||||||
var Rx_1 = require('@reactivex/rxjs/dist/cjs/Rx');
|
var Observable_1 = require('rxjs/Observable');
|
||||||
exports.getPlugin = function (pluginRef) {
|
exports.getPlugin = function (pluginRef) {
|
||||||
return util_1.get(window, pluginRef);
|
return util_1.get(window, pluginRef);
|
||||||
};
|
};
|
||||||
@ -91,7 +91,7 @@ function wrapPromise(pluginObj, methodName, args, opts) {
|
|||||||
}
|
}
|
||||||
function wrapObservable(pluginObj, methodName, args, opts) {
|
function wrapObservable(pluginObj, methodName, args, opts) {
|
||||||
if (opts === void 0) { opts = {}; }
|
if (opts === void 0) { opts = {}; }
|
||||||
return new Rx_1.Observable(function (observer) {
|
return new Observable_1.Observable(function (observer) {
|
||||||
var pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, observer.next.bind(observer), observer.error.bind(observer));
|
var pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, observer.next.bind(observer), observer.error.bind(observer));
|
||||||
return function () {
|
return function () {
|
||||||
try {
|
try {
|
||||||
|
2
dist/plugins/plugin.js.map
vendored
2
dist/plugins/plugin.js.map
vendored
File diff suppressed because one or more lines are too long
46
dist/plugins/statusbar.d.ts
vendored
46
dist/plugins/statusbar.d.ts
vendored
@ -1,11 +1,57 @@
|
|||||||
|
/**
|
||||||
|
* Manage the appearance of the native status bar.
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
* ```js
|
||||||
|
* StatusBar.hide(); // Hide the bar
|
||||||
|
*
|
||||||
|
* StatusBar.setStyle(StatusBar.LIGHT_CONTENT) // Good for dark backgrounds
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
export declare class StatusBar {
|
export declare class StatusBar {
|
||||||
|
/**
|
||||||
|
* Set whether the status bar overlays the main app view. The default
|
||||||
|
* is true.
|
||||||
|
*
|
||||||
|
* @param doesOverlay whether the status bar overlays the main app view.
|
||||||
|
*/
|
||||||
static overlaysWebView(doOverlay: boolean): void;
|
static overlaysWebView(doOverlay: boolean): void;
|
||||||
static styleDefault(): void;
|
static styleDefault(): void;
|
||||||
static styleLightContent(): void;
|
static styleLightContent(): void;
|
||||||
static styleBlackTranslucent(): void;
|
static styleBlackTranslucent(): void;
|
||||||
static styleBlackOpaque(): void;
|
static styleBlackOpaque(): void;
|
||||||
|
/**
|
||||||
|
* Set the status bar to a specific named color. Valid options:
|
||||||
|
* black, darkGray, lightGray, white, gray, red, green, blue, cyan, yellow, magenta, orange, purple, brown.
|
||||||
|
*
|
||||||
|
* iOS note: you must call StatusBar.setOverlay(false) to enable color changing.
|
||||||
|
*
|
||||||
|
* @param name the name of the color (from above)
|
||||||
|
*/
|
||||||
static backgroundColorByName(colorName: string): void;
|
static backgroundColorByName(colorName: string): void;
|
||||||
|
/**
|
||||||
|
* Set the status bar to a specific hex color (CSS shorthand supported!).
|
||||||
|
*
|
||||||
|
* iOS note: you must call StatusBar.setOverlay(false) to enable color changing.
|
||||||
|
*
|
||||||
|
* @param hex the hex value of the color.
|
||||||
|
*/
|
||||||
static backgroundColorByHexString(hexString: string): void;
|
static backgroundColorByHexString(hexString: string): void;
|
||||||
|
/**
|
||||||
|
* Hide the StatusBar
|
||||||
|
*
|
||||||
|
* Options:
|
||||||
|
*
|
||||||
|
* StatusBar.DEFAULT
|
||||||
|
* StatusBar.LIGHT_CONTENT
|
||||||
|
* StatusBar.BLACK_TRANSLUCENT
|
||||||
|
* StatusBar.BLACK_OPAQUE
|
||||||
|
*
|
||||||
|
* @param style the style from above
|
||||||
|
*/
|
||||||
static hide(): void;
|
static hide(): void;
|
||||||
|
/**
|
||||||
|
* Show the StatusBar
|
||||||
|
*/
|
||||||
static show(): void;
|
static show(): void;
|
||||||
}
|
}
|
||||||
|
46
dist/plugins/statusbar.js
vendored
46
dist/plugins/statusbar.js
vendored
@ -5,9 +5,25 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||||
};
|
};
|
||||||
var plugin_1 = require('./plugin');
|
var plugin_1 = require('./plugin');
|
||||||
|
/**
|
||||||
|
* Manage the appearance of the native status bar.
|
||||||
|
*
|
||||||
|
* @usage
|
||||||
|
* ```js
|
||||||
|
* StatusBar.hide(); // Hide the bar
|
||||||
|
*
|
||||||
|
* StatusBar.setStyle(StatusBar.LIGHT_CONTENT) // Good for dark backgrounds
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
var StatusBar = (function () {
|
var StatusBar = (function () {
|
||||||
function StatusBar() {
|
function StatusBar() {
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Set whether the status bar overlays the main app view. The default
|
||||||
|
* is true.
|
||||||
|
*
|
||||||
|
* @param doesOverlay whether the status bar overlays the main app view.
|
||||||
|
*/
|
||||||
StatusBar.overlaysWebView = function (doOverlay) { };
|
StatusBar.overlaysWebView = function (doOverlay) { };
|
||||||
;
|
;
|
||||||
StatusBar.styleDefault = function () { };
|
StatusBar.styleDefault = function () { };
|
||||||
@ -18,12 +34,42 @@ var StatusBar = (function () {
|
|||||||
;
|
;
|
||||||
StatusBar.styleBlackOpaque = function () { };
|
StatusBar.styleBlackOpaque = function () { };
|
||||||
;
|
;
|
||||||
|
/**
|
||||||
|
* Set the status bar to a specific named color. Valid options:
|
||||||
|
* black, darkGray, lightGray, white, gray, red, green, blue, cyan, yellow, magenta, orange, purple, brown.
|
||||||
|
*
|
||||||
|
* iOS note: you must call StatusBar.setOverlay(false) to enable color changing.
|
||||||
|
*
|
||||||
|
* @param name the name of the color (from above)
|
||||||
|
*/
|
||||||
StatusBar.backgroundColorByName = function (colorName) { };
|
StatusBar.backgroundColorByName = function (colorName) { };
|
||||||
;
|
;
|
||||||
|
/**
|
||||||
|
* Set the status bar to a specific hex color (CSS shorthand supported!).
|
||||||
|
*
|
||||||
|
* iOS note: you must call StatusBar.setOverlay(false) to enable color changing.
|
||||||
|
*
|
||||||
|
* @param hex the hex value of the color.
|
||||||
|
*/
|
||||||
StatusBar.backgroundColorByHexString = function (hexString) { };
|
StatusBar.backgroundColorByHexString = function (hexString) { };
|
||||||
;
|
;
|
||||||
|
/**
|
||||||
|
* Hide the StatusBar
|
||||||
|
*
|
||||||
|
* Options:
|
||||||
|
*
|
||||||
|
* StatusBar.DEFAULT
|
||||||
|
* StatusBar.LIGHT_CONTENT
|
||||||
|
* StatusBar.BLACK_TRANSLUCENT
|
||||||
|
* StatusBar.BLACK_OPAQUE
|
||||||
|
*
|
||||||
|
* @param style the style from above
|
||||||
|
*/
|
||||||
StatusBar.hide = function () { };
|
StatusBar.hide = function () { };
|
||||||
;
|
;
|
||||||
|
/**
|
||||||
|
* Show the StatusBar
|
||||||
|
*/
|
||||||
StatusBar.show = function () { };
|
StatusBar.show = function () { };
|
||||||
;
|
;
|
||||||
__decorate([
|
__decorate([
|
||||||
|
2
dist/plugins/statusbar.js.map
vendored
2
dist/plugins/statusbar.js.map
vendored
@ -1 +1 @@
|
|||||||
{"version":3,"file":"statusbar.js","sourceRoot":"","sources":["../../src/plugins/statusbar.ts"],"names":["StatusBar","StatusBar.constructor","StatusBar.overlaysWebView","StatusBar.styleDefault","StatusBar.styleLightContent","StatusBar.styleBlackTranslucent","StatusBar.styleBlackOpaque","StatusBar.backgroundColorByName","StatusBar.backgroundColorByHexString","StatusBar.hide","StatusBar.show"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAEzC;IAAAA;IAwBAC,CAACA;IAjBQD,yBAAeA,GADtBA,UACuBA,SAAiBA,IAAEE,CAACA;;IAEpCF,sBAAYA,GADnBA,cACsBG,CAACA;;IAEhBH,2BAAiBA,GADxBA,cAC2BI,CAACA;;IAErBJ,+BAAqBA,GAD5BA,cAC+BK,CAACA;;IAEzBL,0BAAgBA,GADvBA,cAC0BM,CAACA;;IAEpBN,+BAAqBA,GAD5BA,UAC6BA,SAAgBA,IAAEO,CAACA;;IAEzCP,oCAA0BA,GADjCA,UACkCA,SAAgBA,IAAEQ,CAACA;;IAE9CR,cAAIA,GADXA,cACcS,CAACA;;IAERT,cAAIA,GADXA,cACcU,CAACA;;IAjBfV;QAACA,gBAAOA,EAAEA;OACHA,4BAAeA,QAAqBA;IAC3CA;QAACA,gBAAOA,EAAEA;OACHA,yBAAYA,QAAIA;IACvBA;QAACA,gBAAOA,EAAEA;OACHA,8BAAiBA,QAAIA;IAC5BA;QAACA,gBAAOA,EAAEA;OACHA,kCAAqBA,QAAIA;IAChCA;QAACA,gBAAOA,EAAEA;OACHA,6BAAgBA,QAAIA;IAC3BA;QAACA,gBAAOA,EAAEA;OACHA,kCAAqBA,QAAoBA;IAChDA;QAACA,gBAAOA,EAAEA;OACHA,uCAA0BA,QAAoBA;IACrDA;QAACA,gBAAOA,EAAEA;OACHA,iBAAIA,QAAIA;IACfA;QAACA,gBAAOA,EAAEA;OACHA,iBAAIA,QAAIA;IAvBjBA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,WAAWA;YACjBA,MAAMA,EAAEA,0BAA0BA;YAClCA,SAASA,EAAEA,WAAWA;SACvBA,CAACA;kBAoBDA;IAADA,gBAACA;AAADA,CAACA,AAxBD,IAwBC;AAnBY,iBAAS,YAmBrB,CAAA"}
|
{"version":3,"file":"statusbar.js","sourceRoot":"","sources":["../../src/plugins/statusbar.ts"],"names":["StatusBar","StatusBar.constructor","StatusBar.overlaysWebView","StatusBar.styleDefault","StatusBar.styleLightContent","StatusBar.styleBlackTranslucent","StatusBar.styleBlackOpaque","StatusBar.backgroundColorByName","StatusBar.backgroundColorByHexString","StatusBar.hide","StatusBar.show"],"mappings":";;;;;;AAAA,uBAA8B,UAAU,CAAC,CAAA;AAGzC;;;;;;;;;GASG;AACH;IAAAA;IAoEAC,CAACA;IA9DCD;;;;;OAKGA;IAEIA,yBAAeA,GADtBA,UACuBA,SAAiBA,IAAEE,CAACA;;IAGpCF,sBAAYA,GADnBA,cACsBG,CAACA;;IAGhBH,2BAAiBA,GADxBA,cAC2BI,CAACA;;IAGrBJ,+BAAqBA,GAD5BA,cAC+BK,CAACA;;IAGzBL,0BAAgBA,GADvBA,cAC0BM,CAACA;;IAE3BN;;;;;;;OAOGA;IAEIA,+BAAqBA,GAD5BA,UAC6BA,SAAgBA,IAAEO,CAACA;;IAEhDP;;;;;;OAMGA;IAEIA,oCAA0BA,GADjCA,UACkCA,SAAgBA,IAAEQ,CAACA;;IAErDR;;;;;;;;;;;OAWGA;IAEIA,cAAIA,GADXA,cACcS,CAACA;;IAEfT;;MAEEA;IAEKA,cAAIA,GADXA,cACcU,CAACA;;IAvDfV;QAACA,gBAAOA,EAAEA;OACHA,4BAAeA,QAAqBA;IAE3CA;QAACA,gBAAOA,EAAEA;OACHA,yBAAYA,QAAIA;IAEvBA;QAACA,gBAAOA,EAAEA;OACHA,8BAAiBA,QAAIA;IAE5BA;QAACA,gBAAOA,EAAEA;OACHA,kCAAqBA,QAAIA;IAEhCA;QAACA,gBAAOA,EAAEA;OACHA,6BAAgBA,QAAIA;IAU3BA;QAACA,gBAAOA,EAAEA;OACHA,kCAAqBA,QAAoBA;IAShDA;QAACA,gBAAOA,EAAEA;OACHA,uCAA0BA,QAAoBA;IAcrDA;QAACA,gBAAOA,EAAEA;OACHA,iBAAIA,QAAIA;IAKfA;QAACA,gBAAOA,EAAEA;OACHA,iBAAIA,QAAIA;IAnEjBA;QAACA,eAAMA,CAACA;YACNA,IAAIA,EAAEA,WAAWA;YACjBA,MAAMA,EAAEA,0BAA0BA;YAClCA,SAASA,EAAEA,WAAWA;SACvBA,CAACA;kBAgEDA;IAADA,gBAACA;AAADA,CAACA,AApED,IAoEC;AA/DY,iBAAS,YA+DrB,CAAA"}
|
Loading…
Reference in New Issue
Block a user