diff --git a/CHANGELOG.md b/CHANGELOG.md
index 589a050b2..99cddb639 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,71 @@
+
+# [4.6.0](https://github.com/ionic-team/ionic-native/compare/v5.0.0-beta.3...v4.6.0) (2018-03-19)
+
+
+### Bug Fixes
+
+* **badge:** add correct requestPermission function ([586c7e5](https://github.com/ionic-team/ionic-native/commit/586c7e5))
+* **call-log:** comments erratum ([4b9cf17](https://github.com/ionic-team/ionic-native/commit/4b9cf17))
+* **call-log:** update getCallLog signature ([61c0ecf](https://github.com/ionic-team/ionic-native/commit/61c0ecf))
+* **contacts:** refactor wrong ContactFieldTypes ([f607a03](https://github.com/ionic-team/ionic-native/commit/f607a03))
+* **facebook:** remove browserInit function ([f718432](https://github.com/ionic-team/ionic-native/commit/f718432))
+* **firebase-analytics:** add `sync` option for all methods ([42fd1f2](https://github.com/ionic-team/ionic-native/commit/42fd1f2))
+* **google-maps:** wrong decorators ([e5b9d53](https://github.com/ionic-team/ionic-native/commit/e5b9d53))
+* **health-kit:** add missing properties to HealthKitOptions ([f8e79ce](https://github.com/ionic-team/ionic-native/commit/f8e79ce))
+* **index-app-content:** remove onItemPressed function ([270678f](https://github.com/ionic-team/ionic-native/commit/270678f))
+* **printer:** add correct npm repository ([4bf55d3](https://github.com/ionic-team/ionic-native/commit/4bf55d3))
+* **pro:** proper callback type and guard for plugin instantiate. [#2136](https://github.com/ionic-team/ionic-native/issues/2136) [#2127](https://github.com/ionic-team/ionic-native/issues/2127) ([61293c3](https://github.com/ionic-team/ionic-native/commit/61293c3))
+* **pro:** Tweak to pro plugin. [#2136](https://github.com/ionic-team/ionic-native/issues/2136) [#2127](https://github.com/ionic-team/ionic-native/issues/2127) ([c8ecee0](https://github.com/ionic-team/ionic-native/commit/c8ecee0))
+* **Pro:** CordovaCheck should sync. [#2136](https://github.com/ionic-team/ionic-native/issues/2136) [#2127](https://github.com/ionic-team/ionic-native/issues/2127) ([f419db5](https://github.com/ionic-team/ionic-native/commit/f419db5))
+* **push:** Android senderID as optional ([1b237aa](https://github.com/ionic-team/ionic-native/commit/1b237aa))
+* **Radmob-pro:** add offsetTopBar option ([4948640](https://github.com/ionic-team/ionic-native/commit/4948640))
+* **sqlite:** remove trailing whitespaces ([7547a94](https://github.com/ionic-team/ionic-native/commit/7547a94))
+* **web-intent:** allow extras ([8dc5ad2](https://github.com/ionic-team/ionic-native/commit/8dc5ad2))
+
+
+### Features
+
+* **app-rate:** add custom locale interface ([2a18dbc](https://github.com/ionic-team/ionic-native/commit/2a18dbc))
+* **app-update:** add app update options ([0f325ed](https://github.com/ionic-team/ionic-native/commit/0f325ed))
+* **appodeal:** add new functions ([247a1a1](https://github.com/ionic-team/ionic-native/commit/247a1a1))
+* **base64-to-gallery:** add options interface ([11d516f](https://github.com/ionic-team/ionic-native/commit/11d516f))
+* **ble:** add scan options interface ([e345fed](https://github.com/ionic-team/ionic-native/commit/e345fed))
+* **calendar:** add getCreateCalendarOptions function ([13765d2](https://github.com/ionic-team/ionic-native/commit/13765d2))
+* **call-log:** add plugin ([76a644d](https://github.com/ionic-team/ionic-native/commit/76a644d))
+* **camera-preview:** add onBackButton function ([a345e2c](https://github.com/ionic-team/ionic-native/commit/a345e2c))
+* **device-accounts:** add android account interface ([d2261b6](https://github.com/ionic-team/ionic-native/commit/d2261b6))
+* **device-feedback:** add feedback interface ([7cafebd](https://github.com/ionic-team/ionic-native/commit/7cafebd))
+* **google-analytics:** add missing functions ([ff0008e](https://github.com/ionic-team/ionic-native/commit/ff0008e))
+* **google-maps:** update to match latest plugin version ([#2320](https://github.com/ionic-team/ionic-native/issues/2320)) ([f11be24](https://github.com/ionic-team/ionic-native/commit/f11be24))
+* **hot code push:** add cordova-hot-code-push ([e7968da](https://github.com/ionic-team/ionic-native/commit/e7968da))
+* **hot code push:** add update events ([04bdade](https://github.com/ionic-team/ionic-native/commit/04bdade))
+* **jins-meme:** enable background mode data collection ([1932f2d](https://github.com/ionic-team/ionic-native/commit/1932f2d))
+* **local-notifications:** added a new param to specify if the notification will be silent ([6e58192](https://github.com/ionic-team/ionic-native/commit/6e58192))
+* **one-signal:** add clearOneSignalNotifications function ([fc0338a](https://github.com/ionic-team/ionic-native/commit/fc0338a))
+* **plugin:** add iOS File Picker ([571df3a](https://github.com/ionic-team/ionic-native/commit/571df3a))
+* **speechkit:** plugin implementation ([41e5a0f](https://github.com/ionic-team/ionic-native/commit/41e5a0f))
+* **sqlite:** add selfTest function ([241f073](https://github.com/ionic-team/ionic-native/commit/241f073))
+* **web-intent:** add startService function ([15bb350](https://github.com/ionic-team/ionic-native/commit/15bb350))
+
+
+
+
+# [5.0.0-beta.3](https://github.com/ionic-team/ionic-native/compare/v4.5.1...v5.0.0-beta.3) (2017-12-29)
+
+
+### Bug Fixes
+
+* **push:** fix finish method ([995fd56](https://github.com/ionic-team/ionic-native/commit/995fd56))
+
+
+### Features
+
+* **crop:** add targetHeight and targetWidth options ([#2213](https://github.com/ionic-team/ionic-native/issues/2213)) ([9990df8](https://github.com/ionic-team/ionic-native/commit/9990df8))
+
+
+
-## [4.5.1](https://github.com/ionic-team/ionic-native/compare/v4.5.0...v4.5.1) (2017-12-12)
+## [4.5.1](https://github.com/ionic-team/ionic-native/compare/v5.0.0-beta.0...v4.5.1) (2017-12-12)
### Bug Fixes
@@ -8,8 +74,8 @@
-
-# [4.5.0](https://github.com/ionic-team/ionic-native/compare/v4.4.2...v4.5.0) (2017-12-08)
+
+# [5.0.0-beta.0](https://github.com/ionic-team/ionic-native/compare/v4.5.0...v5.0.0-beta.0) (2017-12-08)
### Bug Fixes
@@ -70,7 +136,7 @@
-## [4.3.3](https://github.com/ionic-team/ionic-native/compare/v4.3.2...v4.3.3) (2017-11-01)
+## [4.3.3](https://github.com/ionic-team/ionic-native/compare/4.3.2...v4.3.3) (2017-11-01)
### Bug Fixes
@@ -79,11 +145,6 @@
-
-## [4.3.2](https://github.com/ionic-team/ionic-native/compare/4.3.2...v4.3.2) (2017-10-18)
-
-
-
## [4.3.2](https://github.com/ionic-team/ionic-native/compare/4.3.1...4.3.2) (2017-10-17)
@@ -125,6 +186,7 @@
* **google-maps:** convert JS classes to Ionic Native ([#1956](https://github.com/ionic-team/ionic-native/issues/1956)) ([57af5c5](https://github.com/ionic-team/ionic-native/commit/57af5c5))
* **google-maps:** fix icons property of MarkerClusterOptions ([#1937](https://github.com/ionic-team/ionic-native/issues/1937)) ([8004790](https://github.com/ionic-team/ionic-native/commit/8004790))
+* **google-maps:** fix issue when creating new instance of BaseArrayClass ([#1931](https://github.com/ionic-team/ionic-native/issues/1931)) ([957396b](https://github.com/ionic-team/ionic-native/commit/957396b))
* **google-maps:** the zoom option is missing in the GoogleMapOptions class ([#1948](https://github.com/ionic-team/ionic-native/issues/1948)) ([ef898ef](https://github.com/ionic-team/ionic-native/commit/ef898ef))
* **http:** fix plugin ref ([#1934](https://github.com/ionic-team/ionic-native/issues/1934)) ([3a1034e](https://github.com/ionic-team/ionic-native/commit/3a1034e))
* **launch-navigator:** fix navigate method ([#1940](https://github.com/ionic-team/ionic-native/issues/1940)) ([a150d4d](https://github.com/ionic-team/ionic-native/commit/a150d4d))
@@ -149,16 +211,6 @@
-
-## [4.2.1](https://github.com/ionic-team/ionic-native/compare/v4.2.0...v4.2.1) (2017-08-29)
-
-
-### Bug Fixes
-
-* **google-maps:** fix issue when creating new instance of BaseArrayClass ([#1931](https://github.com/ionic-team/ionic-native/issues/1931)) ([957396b](https://github.com/ionic-team/ionic-native/commit/957396b))
-
-
-
# [4.2.0](https://github.com/ionic-team/ionic-native/compare/v4.1.0...v4.2.0) (2017-08-26)
diff --git a/package-lock.json b/package-lock.json
index ebea6004b..c7cf02487 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "ionic-native",
- "version": "4.5.1",
+ "version": "4.5.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 17c920439..d4cc528f7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "ionic-native",
- "version": "4.5.1",
+ "version": "4.6.0",
"description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support",
"homepage": "https://ionicframework.com/",
"author": "Ionic Team (https://ionic.io)",
diff --git a/src/@ionic-native/plugins/action-sheet/index.ts b/src/@ionic-native/plugins/action-sheet/index.ts
index 28c33d829..5273f8d0c 100644
--- a/src/@ionic-native/plugins/action-sheet/index.ts
+++ b/src/@ionic-native/plugins/action-sheet/index.ts
@@ -21,7 +21,7 @@ export interface ActionSheetOptions {
/**
* Theme to be used on Android
*/
- androidTheme?: number;
+ androidTheme?: 1 | 2 | 3 | 4 | 5;
/**
* Enable a cancel on Android
@@ -46,7 +46,7 @@ export interface ActionSheetOptions {
/**
* On an iPad, set the X,Y position
*/
- position?: number[];
+ position?: [number, number];
/**
* Choose if destructive button will be the last
@@ -123,7 +123,7 @@ export class ActionSheet extends IonicNativePlugin {
* button pressed (1 based, so 1, 2, 3, etc.)
*/
@Cordova()
- show(options?: ActionSheetOptions): Promise { return; }
+ show(options?: ActionSheetOptions): Promise { return; }
/**
diff --git a/src/@ionic-native/plugins/admob-pro/index.ts b/src/@ionic-native/plugins/admob-pro/index.ts
index ad9c66b1d..bb1c400a7 100644
--- a/src/@ionic-native/plugins/admob-pro/index.ts
+++ b/src/@ionic-native/plugins/admob-pro/index.ts
@@ -1,11 +1,17 @@
import { Injectable } from '@angular/core';
-import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
+import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
-export type AdSize = 'SMART_BANNER' | 'BANNER' | 'MEDIUM_RECTANGLE' | 'FULL_BANNER' | 'LEADERBOARD' | 'SKYSCRAPER' | 'CUSTOM';
+export type AdSize =
+ | 'SMART_BANNER'
+ | 'BANNER'
+ | 'MEDIUM_RECTANGLE'
+ | 'FULL_BANNER'
+ | 'LEADERBOARD'
+ | 'SKYSCRAPER'
+ | 'CUSTOM';
export interface AdMobOptions {
-
/**
* Banner ad ID
*/
@@ -71,10 +77,13 @@ export interface AdMobOptions {
*/
license?: any;
+ /**
+ * Set offset
+ */
+ offsetTopBar?: boolean;
}
export interface AdExtras {
-
color_bg: string;
color_bg_top: string;
@@ -86,7 +95,6 @@ export interface AdExtras {
color_text: string;
color_url: string;
-
}
/**
@@ -134,7 +142,6 @@ export interface AdExtras {
})
@Injectable()
export class AdMobPro extends IonicNativePlugin {
-
AD_POSITION: {
NO_CHANGE: number;
TOP_LEFT: number;
@@ -167,7 +174,9 @@ export class AdMobPro extends IonicNativePlugin {
* @returns {Promise} Returns a Promise that resolves when the banner is created
*/
@Cordova()
- createBanner(adIdOrOptions: string | AdMobOptions): Promise { return; }
+ createBanner(adIdOrOptions: string | AdMobOptions): Promise {
+ return;
+ }
/**
* Destroy the banner, remove it from screen.
@@ -175,7 +184,7 @@ export class AdMobPro extends IonicNativePlugin {
@Cordova({
sync: true
})
- removeBanner(): void { }
+ removeBanner(): void {}
/**
* Show banner at position
@@ -184,7 +193,7 @@ export class AdMobPro extends IonicNativePlugin {
@Cordova({
sync: true
})
- showBanner(position: number): void { }
+ showBanner(position: number): void {}
/**
* Show banner at custom position
@@ -194,7 +203,7 @@ export class AdMobPro extends IonicNativePlugin {
@Cordova({
sync: true
})
- showBannerAtXY(x: number, y: number): void { }
+ showBannerAtXY(x: number, y: number): void {}
/**
* Hide the banner, remove it from screen, but can show it later
@@ -202,7 +211,7 @@ export class AdMobPro extends IonicNativePlugin {
@Cordova({
sync: true
})
- hideBanner(): void { }
+ hideBanner(): void {}
/**
* Prepare interstitial banner
@@ -210,7 +219,9 @@ export class AdMobPro extends IonicNativePlugin {
* @returns {Promise} Returns a Promise that resolves when interstitial is prepared
*/
@Cordova()
- prepareInterstitial(adIdOrOptions: string | AdMobOptions): Promise { return; }
+ prepareInterstitial(adIdOrOptions: string | AdMobOptions): Promise {
+ return;
+ }
/**
* Show interstitial ad when it's ready
@@ -218,7 +229,7 @@ export class AdMobPro extends IonicNativePlugin {
@Cordova({
sync: true
})
- showInterstitial(): void { }
+ showInterstitial(): void {}
/**
* Prepare a reward video ad
@@ -226,7 +237,9 @@ export class AdMobPro extends IonicNativePlugin {
* @returns {Promise} Returns a Promise that resolves when the ad is prepared
*/
@Cordova()
- prepareRewardVideoAd(adIdOrOptions: string | AdMobOptions): Promise { return; }
+ prepareRewardVideoAd(adIdOrOptions: string | AdMobOptions): Promise {
+ return;
+ }
/**
* Show a reward video ad
@@ -234,7 +247,7 @@ export class AdMobPro extends IonicNativePlugin {
@Cordova({
sync: true
})
- showRewardVideoAd(): void { }
+ showRewardVideoAd(): void {}
/**
* Sets the values for configuration and targeting
@@ -242,14 +255,18 @@ export class AdMobPro extends IonicNativePlugin {
* @returns {Promise} Returns a Promise that resolves when the options have been set
*/
@Cordova()
- setOptions(options: AdMobOptions): Promise { return; }
+ setOptions(options: AdMobOptions): Promise {
+ return;
+ }
/**
* Get user ad settings
* @returns {Promise} Returns a promise that resolves with the ad settings
*/
@Cordova()
- getAdSettings(): Promise { return; }
+ getAdSettings(): Promise {
+ return;
+ }
/**
* Triggered when failed to receive Ad
@@ -260,7 +277,9 @@ export class AdMobPro extends IonicNativePlugin {
event: 'onAdFailLoad',
element: document
})
- onAdFailLoad(): Observable { return; }
+ onAdFailLoad(): Observable {
+ return;
+ }
/**
* Triggered when Ad received
@@ -271,7 +290,9 @@ export class AdMobPro extends IonicNativePlugin {
event: 'onAdLoaded',
element: document
})
- onAdLoaded(): Observable { return; }
+ onAdLoaded(): Observable {
+ return;
+ }
/**
* Triggered when Ad will be showed on screen
@@ -282,7 +303,9 @@ export class AdMobPro extends IonicNativePlugin {
event: 'onAdPresent',
element: document
})
- onAdPresent(): Observable { return; }
+ onAdPresent(): Observable {
+ return;
+ }
/**
* Triggered when user click the Ad, and will jump out of your App
@@ -293,7 +316,9 @@ export class AdMobPro extends IonicNativePlugin {
event: 'onAdLeaveApp',
element: document
})
- onAdLeaveApp(): Observable { return; }
+ onAdLeaveApp(): Observable {
+ return;
+ }
/**
* Triggered when dismiss the Ad and back to your App
@@ -304,6 +329,7 @@ export class AdMobPro extends IonicNativePlugin {
event: 'onAdDismiss',
element: document
})
- onAdDismiss(): Observable { return; }
-
+ onAdDismiss(): Observable {
+ return;
+ }
}
diff --git a/src/@ionic-native/plugins/android-full-screen/index.ts b/src/@ionic-native/plugins/android-full-screen/index.ts
index 8971f6dad..e0d023a98 100644
--- a/src/@ionic-native/plugins/android-full-screen/index.ts
+++ b/src/@ionic-native/plugins/android-full-screen/index.ts
@@ -14,8 +14,6 @@ export enum AndroidSystemUiFlags {
HideNavigation = 2,
/** View has requested to go into the normal fullscreen mode so that its content can take over the screen while still allowing the user to interact with the application. SYSTEM_UI_FLAG_FULLSCREEN */
Fullscreen = 4,
- /** Requests the navigation bar to draw in a mode that is compatible with light navigation bar backgrounds. SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR */
- LightNavigationBar = 16,
/** When using other layout flags, we would like a stable view of the content insets given to fitSystemWindows(Rect). SYSTEM_UI_FLAG_LAYOUT_STABLE */
LayoutStable = 256,
/** View would like its window to be laid out as if it has requested SYSTEM_UI_FLAG_HIDE_NAVIGATION, even if it currently hasn't. SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION */
@@ -45,8 +43,8 @@ export enum AndroidSystemUiFlags {
* ...
*
* this.androidFullScreen.isImmersiveModeSupported()
- * .then(() => this.androidFullScreen.immersiveMode())
- * .catch((error: any) => console.log(error));
+ * .then(() => console.log('Immersive mode supported'))
+ * .catch(err => console.log(error));
*
* ```
*/
diff --git a/src/@ionic-native/plugins/app-availability/index.ts b/src/@ionic-native/plugins/app-availability/index.ts
index 3011921b0..3ff0b1996 100644
--- a/src/@ionic-native/plugins/app-availability/index.ts
+++ b/src/@ionic-native/plugins/app-availability/index.ts
@@ -27,8 +27,8 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
*
* this.appAvailability.check(app)
* .then(
- * (yes: string) => console.log(app + ' is available'),
- * (no: string) => console.log(app + ' is NOT available')
+ * (yes: boolean) => console.log(app + ' is available'),
+ * (no: boolean) => console.log(app + ' is NOT available')
* );
* ```
*/
diff --git a/src/@ionic-native/plugins/app-rate/index.ts b/src/@ionic-native/plugins/app-rate/index.ts
index 6eb6b2cb6..170ee7b4a 100644
--- a/src/@ionic-native/plugins/app-rate/index.ts
+++ b/src/@ionic-native/plugins/app-rate/index.ts
@@ -1,8 +1,7 @@
import { Injectable } from '@angular/core';
-import { Cordova, CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core';
+import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core';
export interface AppRatePreferences {
-
/**
* Custom BCP 47 language tag
*/
@@ -41,7 +40,7 @@ export interface AppRatePreferences {
/**
* Custom locale object
*/
- customLocale?: any;
+ customLocale?: AppRateCustomLocale;
/**
* Callbacks for events
@@ -52,11 +51,38 @@ export interface AppRatePreferences {
* App Store URLS
*/
storeAppURL?: AppUrls;
+}
+export interface AppRateCustomLocale {
+ /** Title */
+ title?: string;
+
+ /** Message */
+ message?: string;
+
+ /** Cancel button label */
+ cancelButtonLabel?: string;
+
+ /** Later button label */
+ laterButtonLabel?: string;
+
+ /** Rate button label */
+ rateButtonLabel?: string;
+
+ /** Yes button label */
+ yesButtonLabel?: string;
+
+ /** No button label */
+ noButtonLabel?: string;
+
+ /** App rate promt title */
+ appRatePromptTitle?: string;
+
+ /** Feedback prompt title */
+ feedbackPromptTitle?: string;
}
export interface AppRateCallbacks {
-
/**
* call back function. called when user clicked on rate-dialog buttons
*/
@@ -70,11 +96,9 @@ export interface AppRateCallbacks {
* call back function. called when user clicked on negative feedback
*/
handleNegativeFeedback?: Function;
-
}
export interface AppUrls {
-
/**
* application id in AppStore
*/
@@ -99,7 +123,6 @@ export interface AppUrls {
* application URL in WindowsStore
*/
windows8?: string;
-
}
/**
@@ -142,6 +165,7 @@ export interface AppUrls {
* AppRatePreferences
* AppUrls
* AppRateCallbacks
+ * AppRateCustomLocal
*
*/
@Plugin({
@@ -153,25 +177,22 @@ export interface AppUrls {
})
@Injectable()
export class AppRate extends IonicNativePlugin {
-
/**
* Configure various settings for the Rating View.
* See table below for options
*/
- @CordovaProperty
- preferences: AppRatePreferences;
+ @CordovaProperty preferences: AppRatePreferences;
/**
* Prompts the user for rating
* @param {boolean} immediately Show the rating prompt immediately.
*/
@Cordova()
- promptForRating(immediately: boolean): void { };
+ promptForRating(immediately: boolean): void {}
/**
* Immediately send the user to the app store rating page
*/
@Cordova()
- navigateToAppStore(): void { };
-
+ navigateToAppStore(): void {}
}
diff --git a/src/@ionic-native/plugins/app-update/index.ts b/src/@ionic-native/plugins/app-update/index.ts
index 3b2158ac6..0da8452f1 100644
--- a/src/@ionic-native/plugins/app-update/index.ts
+++ b/src/@ionic-native/plugins/app-update/index.ts
@@ -1,5 +1,11 @@
-import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
import { Injectable } from '@angular/core';
+import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
+
+export interface AppUpdateOptions {
+ authType: string;
+ username?: string;
+ password?: string;
+}
/**
* @name App Update
@@ -24,13 +30,15 @@ import { Injectable } from '@angular/core';
*
* constructor(private appUpdate: AppUpdate) {
*
- * const updateUrl = 'http://your-remote-api.com/update.xml';
- * this.appUpdate.checkAppUpdate(updateUrl);
+ * const updateUrl = 'https://your-remote-api.com/update.xml';
+ * this.appUpdate.checkAppUpdate(updateUrl).then(() => { console.log('Update available') });
*
* }
* ```
*
* The plugin will compare the app version and update it automatically if the API has a newer version to install.
+ * @interfaces
+ * AppUpdateOptions
*/
@Plugin({
pluginName: 'AppUpdate',
@@ -49,5 +57,7 @@ export class AppUpdate extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse'
})
- checkAppUpdate(updateUrl: string): Promise { return; }
+ checkAppUpdate(updateUrl: string, options?: AppUpdateOptions): Promise {
+ return;
+ }
}
diff --git a/src/@ionic-native/plugins/app-version/index.ts b/src/@ionic-native/plugins/app-version/index.ts
index 1962cdebd..a612159d2 100644
--- a/src/@ionic-native/plugins/app-version/index.ts
+++ b/src/@ionic-native/plugins/app-version/index.ts
@@ -38,30 +38,30 @@ export class AppVersion extends IonicNativePlugin {
/**
* Returns the name of the app
- * @returns {Promise}
+ * @returns {Promise}
*/
@Cordova()
- getAppName(): Promise { return; }
+ getAppName(): Promise { return; }
/**
* Returns the package name of the app
- * @returns {Promise}
+ * @returns {Promise}
*/
@Cordova()
- getPackageName(): Promise { return; }
+ getPackageName(): Promise { return; }
/**
* Returns the build identifier of the app
- * @returns {Promise}
+ * @returns {Promise}
*/
@Cordova()
- getVersionCode(): Promise { return; }
+ getVersionCode(): Promise { return; }
/**
* Returns the version of the app
- * @returns {Promise}
+ * @returns {Promise}
*/
@Cordova()
- getVersionNumber(): Promise { return; }
+ getVersionNumber(): Promise { return; }
}
diff --git a/src/@ionic-native/plugins/appodeal/index.ts b/src/@ionic-native/plugins/appodeal/index.ts
index 5d72981f1..b96596da0 100644
--- a/src/@ionic-native/plugins/appodeal/index.ts
+++ b/src/@ionic-native/plugins/appodeal/index.ts
@@ -46,14 +46,16 @@ export class Appodeal extends IonicNativePlugin {
* @param {number} adType
*/
@Cordova()
- initialize(appKey: string, adType: number): void { };
+ initialize(appKey: string, adType: number): void {}
/**
* check if SDK has been initialized
* @returns {Promise}
*/
@Cordova()
- isInitialized(): Promise { return; };
+ isInitialized(): Promise {
+ return;
+ }
/**
* show ad of specified type
@@ -61,7 +63,9 @@ export class Appodeal extends IonicNativePlugin {
* @returns {Promise}
*/
@Cordova()
- show(adType: number): Promise { return; };
+ show(adType: number): Promise {
+ return;
+ }
/**
* show ad of specified type with placement options
@@ -70,24 +74,26 @@ export class Appodeal extends IonicNativePlugin {
* @returns {Promise}
*/
@Cordova()
- showWithPlacement(
- adType: number,
- placement: any
- ): Promise { return; };
+ showWithPlacement(adType: number, placement: any): Promise {
+ return;
+ }
/**
* hide ad of specified type
* @param {number} adType
*/
@Cordova()
- hide(adType: number): void { };
+ hide(adType: number): void {}
/**
* confirm use of ads of specified type
* @param {number} adType
+ * @returns {Promise}
*/
@Cordova()
- confirm(adType: number): void { };
+ canShow(adType: number): Promise {
+ return;
+ }
/**
* check if ad of specified type has been loaded
@@ -95,7 +101,9 @@ export class Appodeal extends IonicNativePlugin {
* @returns {Promise}
*/
@Cordova()
- isLoaded(adType: number): Promise { return; };
+ isLoaded(adType: number): Promise {
+ return;
+ }
/**
* check if ad of specified
@@ -103,7 +111,9 @@ export class Appodeal extends IonicNativePlugin {
* @returns {Promise}
*/
@Cordova()
- isPrecache(adType: number): Promise { return; };
+ isPrecache(adType: number): Promise {
+ return;
+ }
/**
*
@@ -111,75 +121,77 @@ export class Appodeal extends IonicNativePlugin {
* @param autoCache
*/
@Cordova()
- setAutoCache(adType: number, autoCache: any): void { };
+ setAutoCache(adType: number, autoCache: any): void {}
/**
* forcefully cache an ad by type
* @param {number} adType
*/
@Cordova()
- cache(adType: number): void { };
+ cache(adType: number): void {}
/**
*
* @param {boolean} set
*/
@Cordova()
- setOnLoadedTriggerBoth(set: boolean): void { };
+ setTriggerOnLoadedOnPrecache(set: boolean): void {}
/**
* enable or disable Smart Banners
* @param {boolean} enabled
*/
@Cordova()
- setSmartBanners(enabled: boolean): void { };
+ setSmartBanners(enabled: boolean): void {}
/**
* enable or disable banner backgrounds
* @param {boolean} enabled
*/
@Cordova()
- setBannerBackground(enabled: boolean): void { };
+ setBannerBackground(enabled: boolean): void {}
/**
* enable or disable banner animations
* @param {boolean} enabled
*/
@Cordova()
- setBannerAnimation(enabled: boolean): void { };
+ setBannerAnimation(enabled: boolean): void {}
/**
*
* @param value
*/
@Cordova()
- set728x90Banners(value: any): void { };
+ set728x90Banners(value: any): void {}
/**
* enable or disable logging
* @param {boolean} logging
*/
@Cordova()
- setLogging(logging: boolean): void { };
+ setLogLevel(logging: boolean): void {}
/**
* enable or disable testing mode
* @param {boolean} testing
*/
@Cordova()
- setTesting(testing: boolean): void { };
+ setTesting(testing: boolean): void {}
/**
* reset device ID
*/
@Cordova()
- resetUUID(): void { };
+ resetUUID(): void {}
/**
* get version of Appdeal SDK
*/
@Cordova()
- getVersion(): Promise { return; };
+ getVersion(): Promise {
+ return;
+ }
/**
*
@@ -187,7 +199,7 @@ export class Appodeal extends IonicNativePlugin {
* @param {number} adType
*/
@Cordova()
- disableNetwork(network?: string, adType?: number): void { };
+ disableNetwork(network?: string, adType?: number): void {}
/**
*
@@ -195,54 +207,54 @@ export class Appodeal extends IonicNativePlugin {
* @param {number} adType
*/
@Cordova()
- disableNetworkType(network?: string, adType?: number): void { };
+ disableNetworkType(network?: string, adType?: number): void {}
/**
* disable Location permissions for Appodeal SDK
*/
@Cordova()
- disableLocationPermissionCheck(): void { };
+ disableLocationPermissionCheck(): void {}
/**
* disable Storage permissions for Appodeal SDK
*/
@Cordova()
- disableWriteExternalStoragePermissionCheck(): void { };
+ disableWriteExternalStoragePermissionCheck(): void {}
/**
* enable event listeners
* @param {boolean} enabled
*/
@Cordova()
- enableInterstitialCallbacks(enabled: boolean): void { };
+ enableInterstitialCallbacks(enabled: boolean): void {}
/**
* enable event listeners
* @param {boolean} enabled
*/
@Cordova()
- enableSkippableVideoCallbacks(enabled: boolean): void { };
+ enableSkippableVideoCallbacks(enabled: boolean): void {}
/**
* enable event listeners
* @param {boolean} enabled
*/
@Cordova()
- enableNonSkippableVideoCallbacks(enabled: boolean): void { };
+ enableNonSkippableVideoCallbacks(enabled: boolean): void {}
/**
* enable event listeners
* @param {boolean} enabled
*/
@Cordova()
- enableBannerCallbacks(enabled: boolean): void { };
+ enableBannerCallbacks(enabled: boolean): void {}
/**
* enable event listeners
* @param {boolean} enabled
*/
@Cordova()
- enableRewardedVideoCallbacks(enabled: boolean): void { };
+ enableRewardedVideoCallbacks(enabled: boolean): void {}
/**
*
@@ -250,7 +262,7 @@ export class Appodeal extends IonicNativePlugin {
* @param {boolean} value
*/
@Cordova()
- setCustomBooleanRule(name: string, value: boolean): void { };
+ setCustomBooleanRule(name: string, value: boolean): void {}
/**
*
@@ -258,7 +270,7 @@ export class Appodeal extends IonicNativePlugin {
* @param {number} value
*/
@Cordova()
- setCustomIntegerRule(name: string, value: number): void { };
+ setCustomIntegerRule(name: string, value: number): void {}
/**
* set rule with float value
@@ -266,7 +278,7 @@ export class Appodeal extends IonicNativePlugin {
* @param {number} value
*/
@Cordova()
- setCustomDoubleRule(name: string, value: number): void { };
+ setCustomDoubleRule(name: string, value: number): void {}
/**
* set rule with string value
@@ -274,243 +286,321 @@ export class Appodeal extends IonicNativePlugin {
* @param {string} value
*/
@Cordova()
- setCustomStringRule(name: string, value: string): void { };
+ setCustomStringRule(name: string, value: string): void {}
/**
* set ID preference in Appodeal for current user
* @param id
*/
@Cordova()
- setUserId(id: any): void { };
+ setUserId(id: any): void {}
/**
* set Email preference in Appodeal for current user
* @param email
*/
@Cordova()
- setEmail(email: any): void { };
+ setEmail(email: any): void {}
/**
* set Birthday preference in Appodeal for current user
* @param birthday
*/
@Cordova()
- setBirthday(birthday: any): void { };
+ setBirthday(birthday: any): void {}
/**
* et Age preference in Appodeal for current user
* @param age
*/
@Cordova()
- setAge(age: any): void { };
+ setAge(age: any): void {}
/**
* set Gender preference in Appodeal for current user
* @param gender
*/
@Cordova()
- setGender(gender: any): void { };
+ setGender(gender: any): void {}
/**
* set Occupation preference in Appodeal for current user
* @param occupation
*/
@Cordova()
- setOccupation(occupation: any): void { };
+ setOccupation(occupation: any): void {}
/**
* set Relation preference in Appodeal for current user
* @param relation
*/
@Cordova()
- setRelation(relation: any): void { };
+ setRelation(relation: any): void {}
/**
* set Smoking preference in Appodeal for current user
* @param smoking
*/
@Cordova()
- setSmoking(smoking: any): void { };
+ setSmoking(smoking: any): void {}
/**
* set Alcohol preference in Appodeal for current user
* @param alcohol
*/
@Cordova()
- setAlcohol(alcohol: any): void { };
+ setAlcohol(alcohol: any): void {}
/**
* set Interests preference in Appodeal for current user
* @param interests
*/
@Cordova()
- setInterests(interests: any): void { };
+ setInterests(interests: any): void {}
@Cordova({
eventObservable: true,
event: 'onInterstitialLoaded',
element: document
})
- onInterstitialLoaded(): Observable { return; }
+ onInterstitialLoaded(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onInterstitialFailedToLoad',
element: document
})
- onInterstitialFailedToLoad(): Observable { return; }
+ onInterstitialFailedToLoad(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onInterstitialShown',
element: document
})
- onInterstitialShown(): Observable { return; }
+ onInterstitialShown(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onInterstitialClicked',
element: document
})
- onInterstitialClicked(): Observable { return; }
+ onInterstitialClicked(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onInterstitialClosed',
element: document
})
- onInterstitialClosed(): Observable { return; }
+ onInterstitialClosed(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onSkippableVideoLoaded',
element: document
})
- onSkippableVideoLoaded(): Observable { return; }
+ onSkippableVideoLoaded(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onSkippableVideoFailedToLoad',
element: document
})
- onSkippableVideoFailedToLoad(): Observable { return; }
+ onSkippableVideoFailedToLoad(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onSkippableVideoShown',
element: document
})
- onSkippableVideoShown(): Observable { return; }
+ onSkippableVideoShown(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onSkippableVideoFinished',
element: document
})
- onSkippableVideoFinished(): Observable { return; }
+ onSkippableVideoFinished(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onSkippableVideoClosed',
element: document
})
- onSkippableVideoClosed(): Observable { return; }
+ onSkippableVideoClosed(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onRewardedVideoLoaded',
element: document
})
- onRewardedVideoLoaded(): Observable { return; }
+ onRewardedVideoLoaded(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onRewardedVideoFailedToLoad',
element: document
})
- onRewardedVideoFailedToLoad(): Observable { return; }
+ onRewardedVideoFailedToLoad(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onRewardedVideoShown',
element: document
})
- onRewardedVideoShown(): Observable { return; }
+ onRewardedVideoShown(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onRewardedVideoFinished',
element: document
})
- onRewardedVideoFinished(): Observable { return; }
+ onRewardedVideoFinished(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onRewardedVideoClosed',
element: document
})
- onRewardedVideoClosed(): Observable { return; }
+ onRewardedVideoClosed(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onNonSkippableVideoLoaded',
element: document
})
- onNonSkippableVideoLoaded(): Observable { return; }
+ onNonSkippableVideoLoaded(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onNonSkippableVideoFailedToLoad',
element: document
})
- onNonSkippableVideoFailedToLoad(): Observable { return; }
+ onNonSkippableVideoFailedToLoad(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onNonSkippableVideoShown',
element: document
})
- onNonSkippableVideoShown(): Observable { return; }
+ onNonSkippableVideoShown(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onNonSkippableVideoFinished',
element: document
})
- onNonSkippableVideoFinished(): Observable { return; }
+ onNonSkippableVideoFinished(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onNonSkippableVideoClosed',
element: document
})
- onNonSkippableVideoClosed(): Observable { return; }
+ onNonSkippableVideoClosed(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onBannerClicked',
element: document
})
- onBannerClicked(): Observable { return; }
+ onBannerClicked(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onBannerFailedToLoad',
element: document
})
- onBannerFailedToLoad(): Observable { return; }
+ onBannerFailedToLoad(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onBannerLoaded',
element: document
})
- onBannerLoaded(): Observable { return; }
+ onBannerLoaded(): Observable {
+ return;
+ }
@Cordova({
eventObservable: true,
event: 'onBannerShown',
element: document
})
- onBannerShown(): Observable { return; }
+ onBannerShown(): Observable {
+ return;
+ }
+
+ @Cordova()
+ getRewardParametersForPlacement(placement: string): Promise {
+ return;
+ }
+
+ @Cordova()
+ getRewardParameters(): Promise {
+ return;
+ }
+
+ @Cordova()
+ canShowWithPlacement(adType: string, placement: string): Promise {
+ return;
+ }
+
+ @Cordova({
+ platforms: ['Android']
+ })
+ showTestScreen(value: any): void {}
+
+ @Cordova()
+ muteVideosIfCallsMuted(value: any): Promise {
+ return;
+ }
+
+ @Cordova()
+ setChildDirectedTreatment(value: boolean): Promise {
+ return;
+ }
}
diff --git a/src/@ionic-native/plugins/background-mode/index.ts b/src/@ionic-native/plugins/background-mode/index.ts
index 2d7159290..6619db59f 100644
--- a/src/@ionic-native/plugins/background-mode/index.ts
+++ b/src/@ionic-native/plugins/background-mode/index.ts
@@ -2,48 +2,52 @@ import { Injectable } from '@angular/core';
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
-
/**
* Configurations items that can be updated.
*/
export interface BackgroundModeConfiguration {
-
/**
* Title of the background task
*/
- title?: String;
+ title?: string;
/**
* Description of background task
*/
- text?: String;
+ text?: string;
/**
* This will look for `.png` in platforms/android/res/drawable|mipmap
*/
icon?: string;
+ /**
+ * Set the background color of the notification circle
+ */
color?: string;
/**
- * By default the app will come to foreground when taping on the notification. If false, plugin won't come to foreground when tapped.
+ * By default the app will come to foreground when tapping on the notification. If false, plugin won't come to foreground when tapped.
*/
resume?: boolean;
+ /**
+ * When set to false makes the notifications visible on lockscreen (Android 5.0+)
+ */
hidden?: boolean;
+ /** Big text */
bigText?: boolean;
/**
* The text that scrolls itself on statusbar
*/
- ticker?: String;
+ ticker?: string;
/**
* if true plugin will not display a notification. Default is false.
*/
silent?: boolean;
-
}
/**
@@ -74,7 +78,6 @@ export interface BackgroundModeConfiguration {
})
@Injectable()
export class BackgroundMode extends IonicNativePlugin {
-
/**
* Enable the background mode.
* Once called, prevents the app from being paused while in background.
@@ -82,14 +85,16 @@ export class BackgroundMode extends IonicNativePlugin {
@Cordova({
sync: true
})
- enable(): void { }
+ enable(): void {}
/**
* Disable the background mode.
* Once the background mode has been disabled, the app will be paused when in background.
*/
@Cordova()
- disable(): Promise { return; }
+ disable(): Promise {
+ return;
+ }
/**
* Checks if background mode is enabled or not.
@@ -98,7 +103,9 @@ export class BackgroundMode extends IonicNativePlugin {
@Cordova({
sync: true
})
- isEnabled(): boolean { return; }
+ isEnabled(): boolean {
+ return;
+ }
/**
* Can be used to get the information if the background mode is active.
@@ -107,7 +114,9 @@ export class BackgroundMode extends IonicNativePlugin {
@Cordova({
sync: true
})
- isActive(): boolean { return; }
+ isActive(): boolean {
+ return;
+ }
/**
* Override the default title, ticker and text.
@@ -117,7 +126,9 @@ export class BackgroundMode extends IonicNativePlugin {
@Cordova({
platforms: ['Android']
})
- setDefaults(options?: BackgroundModeConfiguration): Promise { return; }
+ setDefaults(options?: BackgroundModeConfiguration): Promise {
+ return;
+ }
/**
* Modify the displayed information.
@@ -140,7 +151,9 @@ export class BackgroundMode extends IonicNativePlugin {
clearFunction: 'un',
clearWithArgs: true
})
- on(event: string): Observable { return; }
+ on(event: string): Observable {
+ return;
+ }
/**
* Android allows to programmatically move from foreground to background.
@@ -149,7 +162,7 @@ export class BackgroundMode extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
- moveToBackground(): void { }
+ moveToBackground(): void {}
/**
* Enable GPS-tracking in background (Android).
@@ -158,7 +171,7 @@ export class BackgroundMode extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
- disableWebViewOptimizations (): void { }
+ disableWebViewOptimizations(): void {}
/**
* Android allows to programmatically move from background to foreground.
@@ -167,7 +180,7 @@ export class BackgroundMode extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
- moveToForeground(): void { }
+ moveToForeground(): void {}
/**
* Override the back button on Android to go to background instead of closing the app.
@@ -176,7 +189,7 @@ export class BackgroundMode extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
- overrideBackButton(): void { }
+ overrideBackButton(): void {}
/**
* Exclude the app from the recent task list. Works on Android 5.0+.
@@ -185,7 +198,7 @@ export class BackgroundMode extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
- excludeFromTaskList(): void { }
+ excludeFromTaskList(): void {}
/**
* The method works async instead of isActive() or isEnabled().
@@ -193,7 +206,9 @@ export class BackgroundMode extends IonicNativePlugin {
@Cordova({
platforms: ['Android']
})
- isScreenOff(): Promise { return; }
+ isScreenOff(): Promise {
+ return;
+ }
/**
* Turn screen on
@@ -202,7 +217,7 @@ export class BackgroundMode extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
- wakeUp(): void { }
+ wakeUp(): void {}
/**
* Turn screen on and show app even locked
@@ -211,6 +226,5 @@ export class BackgroundMode extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
- unlock(): void { }
-
+ unlock(): void {}
}
diff --git a/src/@ionic-native/plugins/badge/index.ts b/src/@ionic-native/plugins/badge/index.ts
index 7da09cf74..815711c74 100644
--- a/src/@ionic-native/plugins/badge/index.ts
+++ b/src/@ionic-native/plugins/badge/index.ts
@@ -1,7 +1,6 @@
import { Injectable } from '@angular/core';
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
-
/**
* @name Badge
* @description
@@ -31,13 +30,14 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
})
@Injectable()
export class Badge extends IonicNativePlugin {
-
/**
* Clear the badge of the app icon.
* @returns {Promise}
*/
@Cordova()
- clear(): Promise { return; }
+ clear(): Promise {
+ return;
+ }
/**
* Set the badge of the app icon.
@@ -45,14 +45,18 @@ export class Badge extends IonicNativePlugin {
* @returns {Promise}
*/
@Cordova()
- set(badgeNumber: number): Promise { return; }
+ set(badgeNumber: number): Promise {
+ return;
+ }
/**
* Get the badge of the app icon.
* @returns {Promise}
*/
@Cordova()
- get(): Promise { return; }
+ get(): Promise {
+ return;
+ }
/**
* Increase the badge number.
@@ -60,7 +64,9 @@ export class Badge extends IonicNativePlugin {
* @returns {Promise}
*/
@Cordova()
- increase(increaseBy: number): Promise { return; }
+ increase(increaseBy: number): Promise {
+ return;
+ }
/**
* Decrease the badge number.
@@ -68,20 +74,34 @@ export class Badge extends IonicNativePlugin {
* @returns {Promise}
*/
@Cordova()
- decrease(decreaseBy: number): Promise { return; }
+ decrease(decreaseBy: number): Promise {
+ return;
+ }
+
+ /**
+ * Check support to show badges.
+ * @returns {Promise}
+ */
+ @Cordova()
+ isSupported(): Promise {
+ return;
+ }
/**
* Determine if the app has permission to show badges.
* @returns {Promise}
*/
@Cordova()
- hasPermission(): Promise { return; }
+ hasPermission(): Promise {
+ return;
+ }
/**
* Register permission to set badge notifications
* @returns {Promise}
*/
@Cordova()
- registerPermission(): Promise { return; }
-
+ requestPermission(): Promise {
+ return;
+ }
}
diff --git a/src/@ionic-native/plugins/barcode-scanner/index.ts b/src/@ionic-native/plugins/barcode-scanner/index.ts
index f55f76a01..467d613cf 100644
--- a/src/@ionic-native/plugins/barcode-scanner/index.ts
+++ b/src/@ionic-native/plugins/barcode-scanner/index.ts
@@ -1,8 +1,7 @@
import { Injectable } from '@angular/core';
-import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
+import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
export interface BarcodeScannerOptions {
-
/**
* Prefer front camera. Supported on iOS and Android.
*/
@@ -52,11 +51,26 @@ export interface BarcodeScannerOptions {
* Display scanned text for X ms. 0 suppresses it entirely, default 1500. Supported on Android only.
*/
resultDisplayDuration?: number;
-
}
export interface BarcodeScanResult {
- format: 'QR_CODE' | 'DATA_MATRIX' | 'UPC_E' | 'UPC_A' | 'EAN_8' | 'EAN_13' | 'CODE_128' | 'CODE_39' | 'CODE_93' | 'CODABAR' | 'ITF' | 'RSS14' | 'RSS_EXPANDED' | 'PDF417' | 'AZTEC' | 'MSI';
+ format:
+ | 'QR_CODE'
+ | 'DATA_MATRIX'
+ | 'UPC_E'
+ | 'UPC_A'
+ | 'EAN_8'
+ | 'EAN_13'
+ | 'CODE_128'
+ | 'CODE_39'
+ | 'CODE_93'
+ | 'CODABAR'
+ | 'ITF'
+ | 'RSS14'
+ | 'RSS_EXPANDED'
+ | 'PDF417'
+ | 'AZTEC'
+ | 'MSI';
cancelled: boolean;
text: string;
}
@@ -77,10 +91,10 @@ export interface BarcodeScanResult {
* ...
*
*
- * this.barcodeScanner.scan().then((barcodeData) => {
- * // Success! Barcode data is here
- * }, (err) => {
- * // An error occurred
+ * this.barcodeScanner.scan().then(barcodeData => {
+ * console.log('Barcode data', barcodeData);
+ * }).catch(err => {
+ * console.log('Error', err);
* });
* ```
* @interfaces
@@ -96,7 +110,6 @@ export interface BarcodeScanResult {
})
@Injectable()
export class BarcodeScanner extends IonicNativePlugin {
-
Encode: {
TEXT_TYPE: string;
EMAIL_TYPE: string;
@@ -117,7 +130,9 @@ export class BarcodeScanner extends IonicNativePlugin {
@Cordova({
callbackOrder: 'reverse'
})
- scan(options?: BarcodeScannerOptions): Promise { return; }
+ scan(options?: BarcodeScannerOptions): Promise {
+ return;
+ }
/**
* Encodes data into a barcode.
@@ -127,6 +142,7 @@ export class BarcodeScanner extends IonicNativePlugin {
* @returns {Promise}
*/
@Cordova()
- encode(type: string, data: any): Promise { return; }
-
+ encode(type: string, data: any): Promise {
+ return;
+ }
}
diff --git a/src/@ionic-native/plugins/base64-to-gallery/index.ts b/src/@ionic-native/plugins/base64-to-gallery/index.ts
index 0acc4da06..c4ac50c78 100644
--- a/src/@ionic-native/plugins/base64-to-gallery/index.ts
+++ b/src/@ionic-native/plugins/base64-to-gallery/index.ts
@@ -1,5 +1,15 @@
import { Injectable } from '@angular/core';
-import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
+import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
+
+export interface Base64ToGalleryOptions {
+ /** Saved file name prefix */
+ prefix: string;
+ /**
+ * On Android runs Media Scanner after file creation.
+ * On iOS if true the file will be added to camera roll, otherwise will be saved to a library folder.
+ */
+ mediaScanner: boolean;
+}
/**
* @name Base64 To Gallery
@@ -19,6 +29,8 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
* err => console.log('Error saving image to gallery ', err)
* );
* ```
+ * @interfaces
+ * Base64ToGalleryOptions
*/
@Plugin({
pluginName: 'Base64ToGallery',
@@ -29,19 +41,20 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
})
@Injectable()
export class Base64ToGallery extends IonicNativePlugin {
-
/**
* Converts a base64 string to an image file in the device gallery
* @param {string} data The actual base64 string that you want to save
- * @param {any} [options] An object with properties: prefix: string, mediaScanner: boolean. Prefix will be prepended to the filename. If true, mediaScanner runs Media Scanner on Android and saves to Camera Roll on iOS; if false, saves to Library folder on iOS.
+ * @param {any} [options] An object with properties
* @returns {Promise} returns a promise that resolves when the image is saved.
*/
@Cordova({
successIndex: 2,
errorIndex: 3
})
- base64ToGallery(data: string, options?: { prefix?: string; mediaScanner?: boolean }): Promise {
+ base64ToGallery(
+ data: string,
+ options?: Base64ToGalleryOptions
+ ): Promise {
return;
}
-
}
diff --git a/src/@ionic-native/plugins/battery-status/index.ts b/src/@ionic-native/plugins/battery-status/index.ts
index d3999a49e..d096bdad1 100644
--- a/src/@ionic-native/plugins/battery-status/index.ts
+++ b/src/@ionic-native/plugins/battery-status/index.ts
@@ -1,9 +1,8 @@
import { Injectable } from '@angular/core';
-import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
+import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
export interface BatteryStatusResponse {
-
/**
* The battery charge percentage
*/
@@ -13,7 +12,6 @@ export interface BatteryStatusResponse {
* A boolean that indicates whether the device is plugged in
*/
isPlugged: boolean;
-
}
/**
@@ -31,11 +29,9 @@ export interface BatteryStatusResponse {
*
*
* // watch change in battery status
- * let subscription = this.batteryStatus.onChange().subscribe(
- * (status: BatteryStatusResponse) => {
+ * const subscription = this.batteryStatus.onChange().subscribe(status => {
* console.log(status.level, status.isPlugged);
- * }
- * );
+ * });
*
* // stop watch
* subscription.unsubscribe();
@@ -53,7 +49,6 @@ export interface BatteryStatusResponse {
})
@Injectable()
export class BatteryStatus extends IonicNativePlugin {
-
/**
* Watch the change in battery level
* @returns {Observable} Returns an observable that pushes a status object
@@ -62,7 +57,9 @@ export class BatteryStatus extends IonicNativePlugin {
eventObservable: true,
event: 'batterystatus'
})
- onChange(): Observable { return; }
+ onChange(): Observable {
+ return;
+ }
/**
* Watch when the battery level goes low
@@ -72,7 +69,9 @@ export class BatteryStatus extends IonicNativePlugin {
eventObservable: true,
event: 'batterylow'
})
- onLow(): Observable { return; }
+ onLow(): Observable {
+ return;
+ }
/**
* Watch when the battery level goes to critial
@@ -82,6 +81,7 @@ export class BatteryStatus extends IonicNativePlugin {
eventObservable: true,
event: 'batterycritical'
})
- onCritical(): Observable { return; }
-
+ onCritical(): Observable {
+ return;
+ }
}
diff --git a/src/@ionic-native/plugins/ble/index.ts b/src/@ionic-native/plugins/ble/index.ts
index 1a2688bfb..3deff7a1a 100644
--- a/src/@ionic-native/plugins/ble/index.ts
+++ b/src/@ionic-native/plugins/ble/index.ts
@@ -1,7 +1,12 @@
import { Injectable } from '@angular/core';
-import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
+import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
+export interface BLEScanOptions {
+ /** true if duplicate devices should be reported, false (default) if devices should only be reported once. */
+ reportDuplicates?: boolean;
+}
+
/**
* @name BLE
* @description
@@ -167,6 +172,8 @@ import { Observable } from 'rxjs/Observable';
*
* UUIDs are always strings and not numbers. Some 16-bit UUIDs, such as '2220' look like integers, but they're not. (The integer 2220 is 0x8AC in hex.) This isn't a problem with 128 bit UUIDs since they look like strings 82b9e6e1-593a-456f-be9b-9215160ebcac. All 16-bit UUIDs should also be passed to methods as strings.
*
+ * @interfaces
+ * BLEScanOptions
*/
@Plugin({
pluginName: 'BLE',
@@ -177,7 +184,6 @@ import { Observable } from 'rxjs/Observable';
})
@Injectable()
export class BLE extends IonicNativePlugin {
-
/**
* Scan and discover BLE peripherals for the specified amount of time.
*
@@ -194,7 +200,9 @@ export class BLE extends IonicNativePlugin {
@Cordova({
observable: true
})
- scan(services: string[], seconds: number): Observable { return; }
+ scan(services: string[], seconds: number): Observable {
+ return;
+ }
/**
* Scan and discover BLE peripherals until `stopScan` is called.
@@ -217,7 +225,9 @@ export class BLE extends IonicNativePlugin {
clearFunction: 'stopScan',
clearWithArgs: false
})
- startScan(services: string[]): Observable { return; }
+ startScan(services: string[]): Observable {
+ return;
+ }
/**
* Scans for BLE devices. This function operates similarly to the `startScan` function, but allows you to specify extra options (like allowing duplicate device reports).
@@ -230,7 +240,12 @@ export class BLE extends IonicNativePlugin {
clearFunction: 'stopScan',
clearWithArgs: false
})
- startScanWithOptions(services: string[], options: { reportDuplicates?: boolean } | any): Observable { return; }
+ startScanWithOptions(
+ services: string[],
+ options: BLEScanOptions
+ ): Observable {
+ return;
+ }
/**
* Stop a scan started by `startScan`.
@@ -247,7 +262,9 @@ export class BLE extends IonicNativePlugin {
* @return returns a Promise.
*/
@Cordova()
- stopScan(): Promise { return; }
+ stopScan(): Promise {
+ return;
+ }
/**
* Connect to a peripheral.
@@ -268,7 +285,9 @@ export class BLE extends IonicNativePlugin {
clearFunction: 'disconnect',
clearWithArgs: true
})
- connect(deviceId: string): Observable { return; }
+ connect(deviceId: string): Observable {
+ return;
+ }
/**
* Disconnect from a peripheral.
@@ -282,7 +301,9 @@ export class BLE extends IonicNativePlugin {
* @return Returns a Promise
*/
@Cordova()
- disconnect(deviceId: string): Promise { return; }
+ disconnect(deviceId: string): Promise {
+ return;
+ }
/**
* Read the value of a characteristic.
@@ -297,7 +318,9 @@ export class BLE extends IonicNativePlugin {
deviceId: string,
serviceUUID: string,
characteristicUUID: string
- ): Promise { return; };
+ ): Promise {
+ return;
+ }
/**
* Write the value of a characteristic.
@@ -333,7 +356,9 @@ export class BLE extends IonicNativePlugin {
serviceUUID: string,
characteristicUUID: string,
value: ArrayBuffer
- ): Promise { return; }
+ ): Promise {
+ return;
+ }
/**
* Write the value of a characteristic without waiting for confirmation from the peripheral.
@@ -350,7 +375,9 @@ export class BLE extends IonicNativePlugin {
serviceUUID: string,
characteristicUUID: string,
value: ArrayBuffer
- ): Promise { return; }
+ ): Promise {
+ return;
+ }
/**
* Register to be notified when the value of a characteristic changes.
@@ -376,7 +403,9 @@ export class BLE extends IonicNativePlugin {
deviceId: string,
serviceUUID: string,
characteristicUUID: string
- ): Observable { return; }
+ ): Observable {
+ return;
+ }
/**
* Stop being notified when the value of a characteristic changes.
@@ -391,7 +420,9 @@ export class BLE extends IonicNativePlugin {
deviceId: string,
serviceUUID: string,
characteristicUUID: string
- ): Promise { return; }
+ ): Promise {
+ return;
+ }
/**
* Report the connection status.
@@ -407,7 +438,9 @@ export class BLE extends IonicNativePlugin {
* @returns {Promise}
*/
@Cordova()
- isConnected(deviceId: string): Promise { return; }
+ isConnected(deviceId: string): Promise {
+ return;
+ }
/**
* Report if bluetooth is enabled.
@@ -415,7 +448,9 @@ export class BLE extends IonicNativePlugin {
* @returns {Promise} Returns a Promise that resolves if Bluetooth is enabled, and rejects if disabled.
*/
@Cordova()
- isEnabled(): Promise { return; }
+ isEnabled(): Promise {
+ return;
+ }
/**
* Register to be notified when Bluetooth state changes on the device.
@@ -434,7 +469,9 @@ export class BLE extends IonicNativePlugin {
clearFunction: 'stopStateNotifications',
clearWithArgs: false
})
- startStateNotifications(): Observable { return; }
+ startStateNotifications(): Observable {
+ return;
+ }
/**
* Stop state notifications.
@@ -442,7 +479,9 @@ export class BLE extends IonicNativePlugin {
* @returns {Promise}
*/
@Cordova()
- stopStateNotifications(): Promise { return; }
+ stopStateNotifications(): Promise {
+ return;
+ }
/**
* Open System Bluetooth settings (Android only).
@@ -450,7 +489,9 @@ export class BLE extends IonicNativePlugin {
* @returns {Promise}
*/
@Cordova()
- showBluetoothSettings(): Promise { return; }
+ showBluetoothSettings(): Promise {
+ return;
+ }
/**
* Enable Bluetooth on the device (Android only).
@@ -458,7 +499,9 @@ export class BLE extends IonicNativePlugin {
* @returns {Promise}
*/
@Cordova()
- enable(): Promise { return; }
+ enable(): Promise {
+ return;
+ }
/**
* Read the RSSI value on the device connection.
@@ -468,7 +511,7 @@ export class BLE extends IonicNativePlugin {
*@returns {Promise}
*/
@Cordova()
- readRSSI(
- deviceId: string,
- ): Promise { return; }
+ readRSSI(deviceId: string): Promise {
+ return;
+ }
}
diff --git a/src/@ionic-native/plugins/blinkup/index.ts b/src/@ionic-native/plugins/blinkup/index.ts
new file mode 100644
index 000000000..b02d7154f
--- /dev/null
+++ b/src/@ionic-native/plugins/blinkup/index.ts
@@ -0,0 +1,114 @@
+import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
+import { Observable } from 'rxjs/Observable';
+import { Injectable } from '@angular/core';
+
+/**
+ * Interface of a blink up options.
+ */
+export interface BlinkUpOptions {
+ apiKey: string;
+ developmentPlanId?: string;
+ isInDevelopment?: boolean;
+ timeoutMs?: number;
+}
+
+/**
+ * Interface of a blink up wifi options.
+ */
+export interface BlinkUpWifiOptions {
+ apiKey: string;
+ timeoutMs?: number;
+ ssid: string;
+ password: string;
+}
+
+/**
+ * Interface of a blink up wps options.
+ */
+export interface BlinkUpWPSOptions {
+ apiKey: string;
+ timeoutMs?: number;
+ wpsPin: string;
+}
+
+/**
+ * @name BlinkUp
+ * @description
+ * Electric Imp BlinkUp ionic plugin.
+ *
+ * @usage
+ * ```typescript
+ * import { BlinkUp } from '@ionic-native/blinkup';
+ *
+ * const options = {
+ * apiKey: 'API_KEY',
+ * timeoutMs: 60000,
+ * ssid: 'MY_SSID',
+ * password: 'MY_PASSWORD'
+ * }
+ * BlinkUp.flashWifiBlinkUp(options).subscribe(
+ * (result) => console.log('Done'),
+ * (error) => console.log(error)
+ * )
+ * ```
+ */
+@Plugin({
+ pluginName: 'BlinkUp',
+ plugin: 'cordova-plugin-blinkup',
+ pluginRef: 'blinkup',
+ repo: 'https://github.com/SensorShare/cordova-plugin-blinkup',
+ platforms: ['Android', 'iOS']
+})
+@Injectable()
+export class BlinkUp extends IonicNativePlugin {
+ /**
+ * startBlinkUp - starts the blinkup process
+ * @param {module:blinkup.BlinkUpOptions} options BlinkUp Options
+ * @return {Observable} Returns an Observable
+ */
+ @Cordova({
+ callbackOrder: 'reverse',
+ observable: true
+ })
+ startBlinkUp(options: BlinkUpOptions): Observable { return; }
+
+ /**
+ * flashWifiBlinkUp - invokes the flash wifi process
+ * @param {module:blinkup.BlinkUpWifiOptions} options BlinkUp Wifi Options
+ * @return {Observable} Returns an Observable
+ */
+ @Cordova({
+ callbackOrder: 'reverse',
+ observable: true
+ })
+ flashWifiBlinkUp(options: BlinkUpWifiOptions): Observable { return; }
+
+ /**
+ * flashWPSBlinkUp - invokes the flash wps process
+ * @param {module:blinkup.BlinkUpWPSOptions} options BlinkUp WPS Options
+ * @return {Observable} Returns an Observable
+ */
+ @Cordova({
+ callbackOrder: 'reverse',
+ observable: true
+ })
+ flashWPSBlinkUp(options: BlinkUpWPSOptions): Observable { return; }
+
+ /**
+ * abortBlinkUp - abort blinkup process
+ * @return {Observable} Returns an Observable
+ */
+ @Cordova({
+ observable: true
+ })
+ abortBlinkUp(): Observable { return; }
+
+ /**
+ * clearBlinkUpData - clear wifi data
+ * @return {Observable} Returns an Observable
+ */
+ @Cordova({
+ observable: true
+ })
+ clearBlinkUpData(): Observable { return; }
+}
diff --git a/src/@ionic-native/plugins/brightness/index.ts b/src/@ionic-native/plugins/brightness/index.ts
index d6a4aa677..54120ab96 100644
--- a/src/@ionic-native/plugins/brightness/index.ts
+++ b/src/@ionic-native/plugins/brightness/index.ts
@@ -1,6 +1,5 @@
import { Injectable } from '@angular/core';
-import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
-
+import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* @name Brightness
@@ -17,7 +16,7 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
*
* ...
*
- * let brightnessValue: number = 0.8;
+ * let brightnessValue = 0.8;
* this.brightness.setBrightness(brightnessValue);
* ```
*
@@ -31,15 +30,16 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
})
@Injectable()
export class Brightness extends IonicNativePlugin {
-
/**
* Sets the brightness of the display.
*
- * @param {value} Floating number between 0 and 1 in which case 1 means 100% brightness and 0 means 0% brightness.
+ * @param value {number} Floating number between 0 and 1 in which case 1 means 100% brightness and 0 means 0% brightness.
* @returns {Promise} Returns a Promise that resolves if setting brightness was successful.
*/
@Cordova()
- setBrightness(value: number): Promise { return; }
+ setBrightness(value: number): Promise {
+ return;
+ }
/**
* Reads the current brightness of the device display.
@@ -48,12 +48,13 @@ export class Brightness extends IonicNativePlugin {
* brightness value of the device display (floating number between 0 and 1).
*/
@Cordova()
- getBrightness(): Promise { return; }
+ getBrightness(): Promise {
+ return;
+ }
/**
- * Keeps the screen on. Prevents the device from setting the screen to sleep.
- */
+ * Keeps the screen on. Prevents the device from setting the screen to sleep.
+ */
@Cordova()
- setKeepScreenOn(value: boolean): void { }
-
+ setKeepScreenOn(value: boolean): void {}
}
diff --git a/src/@ionic-native/plugins/broadcaster/index.ts b/src/@ionic-native/plugins/broadcaster/index.ts
index 8aabbb902..eb291aae9 100644
--- a/src/@ionic-native/plugins/broadcaster/index.ts
+++ b/src/@ionic-native/plugins/broadcaster/index.ts
@@ -28,7 +28,7 @@ import { Observable } from 'rxjs/Observable';
plugin: 'cordova-plugin-broadcaster',
pluginRef: 'broadcaster',
repo: 'https://github.com/bsorrentino/cordova-broadcaster',
- platforms: ['Android', 'iOS']
+ platforms: ['Android', 'iOS', 'Browser']
})
@Injectable()
export class Broadcaster extends IonicNativePlugin {
diff --git a/src/@ionic-native/plugins/calendar/index.ts b/src/@ionic-native/plugins/calendar/index.ts
index 329df3666..5854ce0e1 100644
--- a/src/@ionic-native/plugins/calendar/index.ts
+++ b/src/@ionic-native/plugins/calendar/index.ts
@@ -1,8 +1,7 @@
import { Injectable } from '@angular/core';
-import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
+import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
export interface CalendarOptions {
-
/**
* Id
*/
@@ -47,7 +46,14 @@ export interface CalendarOptions {
* URL
*/
url?: string;
+}
+export interface NameOrOptions {
+ /** Calendar name */
+ calendarName?: string;
+
+ /** Calendar color as a HEX string */
+ calendarColor?: string;
}
/**
@@ -72,6 +78,7 @@ export interface CalendarOptions {
* ```
* @interfaces
* CalendarOptions
+ * NameOrOptions
*/
@Plugin({
pluginName: 'Calendar',
@@ -82,7 +89,6 @@ export interface CalendarOptions {
})
@Injectable()
export class Calendar extends IonicNativePlugin {
-
/**
* This function checks if we have permission to read/write from/to the calendar.
* The promise will resolve with `true` when:
@@ -95,51 +101,65 @@ export class Calendar extends IonicNativePlugin {
* @returns {Promise}
*/
@Cordova()
- hasReadWritePermission(): Promise { return; }
+ hasReadWritePermission(): Promise {
+ return;
+ }
/**
* Check if we have read permission
* @returns {Promise}
*/
@Cordova()
- hasReadPermission(): Promise { return; }
+ hasReadPermission(): Promise {
+ return;
+ }
/**
* Check if we have write permission
* @returns {Promise}
*/
@Cordova()
- hasWritePermission(): Promise { return; }
+ hasWritePermission(): Promise {
+ return;
+ }
/**
* Request write permission
* @returns {Promise}
*/
@Cordova()
- requestWritePermission(): Promise { return; }
+ requestWritePermission(): Promise {
+ return;
+ }
/**
* Request read permission
* @returns {Promise}
*/
@Cordova()
- requestReadPermission(): Promise { return; }
+ requestReadPermission(): Promise {
+ return;
+ }
/**
* Requests read/write permissions
* @returns {Promise}
*/
@Cordova()
- requestReadWritePermission(): Promise { return; }
+ requestReadWritePermission(): Promise {
+ return;
+ }
/**
* Create a calendar. (iOS only)
*
- * @param {string | Object} nameOrOptions either a string name or a options object. If string, provide the calendar name. IF an object, provide a calendar name as a string and a calendar color in hex format as a string
+ * @param {string | CalendarOptions} nameOrOptions either a string name or a options object. If string, provide the calendar name. IF an object, provide a calendar name as a string and a calendar color in hex format as a string
* @returns {Promise} Returns a Promise
*/
@Cordova()
- createCalendar(nameOrOptions: string | any): Promise { return; }
+ createCalendar(nameOrOptions: string | CalendarOptions): Promise {
+ return;
+ }
/**
* Delete a calendar. (iOS only)
@@ -147,7 +167,9 @@ export class Calendar extends IonicNativePlugin {
* @returns {Promise} Returns a Promise
*/
@Cordova()
- deleteCalendar(name: string): Promise { return; }
+ deleteCalendar(name: string): Promise {
+ return;
+ }
/**
* Returns the default calendar options.
@@ -157,7 +179,21 @@ export class Calendar extends IonicNativePlugin {
@Cordova({
sync: true
})
- getCalendarOptions(): CalendarOptions { return; }
+ getCalendarOptions(): CalendarOptions {
+ return;
+ }
+
+ /**
+ * Returns options for a custom calender with sepcific colord
+ *
+ * @return {NameOrOptions} Returns an object with the default options
+ */
+ @Cordova({
+ sync: true
+ })
+ getCreateCalendarOptions(): NameOrOptions {
+ return;
+ }
/**
* Silently create an event.
@@ -175,7 +211,9 @@ export class Calendar extends IonicNativePlugin {
notes?: string,
startDate?: Date,
endDate?: Date
- ): Promise { return; }
+ ): Promise {
+ return;
+ }
/**
* Silently create an event with additional options.
@@ -196,7 +234,9 @@ export class Calendar extends IonicNativePlugin {
startDate?: Date,
endDate?: Date,
options?: CalendarOptions
- ): Promise { return; }
+ ): Promise {
+ return;
+ }
/**
* Interactively create an event.
@@ -215,7 +255,9 @@ export class Calendar extends IonicNativePlugin {
notes?: string,
startDate?: Date,
endDate?: Date
- ): Promise { return; }
+ ): Promise {
+ return;
+ }
/**
* Interactively create an event with additional options.
@@ -236,7 +278,9 @@ export class Calendar extends IonicNativePlugin {
startDate?: Date,
endDate?: Date,
options?: CalendarOptions
- ): Promise { return; }
+ ): Promise