From fa803f22583fd7dfb608efefcc21753b9f6a57f2 Mon Sep 17 00:00:00 2001 From: eddyTheDove Date: Sun, 26 Mar 2017 19:01:55 +1100 Subject: [PATCH 1/3] docs(music-controls): remove duplicate subscribe (#1258) There was a double .subscribe() function in `this.musicControls.subscribe()` --- src/@ionic-native/plugins/music-controls/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/music-controls/index.ts b/src/@ionic-native/plugins/music-controls/index.ts index 0828f891..43c4dcca 100644 --- a/src/@ionic-native/plugins/music-controls/index.ts +++ b/src/@ionic-native/plugins/music-controls/index.ts @@ -56,7 +56,7 @@ export interface MusicControlsOptions { * ticker : 'Now playing "Time is Running Out"' * }); * - * this.musicControls.subscribe().subscribe(action => { + * this.musicControls.subscribe(action => { * * switch(action) { * case 'music-controls-next': From 3511f24a26e7f0bf7927c1cb0d3217f43c8313c3 Mon Sep 17 00:00:00 2001 From: eddyTheDove Date: Sun, 26 Mar 2017 19:02:12 +1100 Subject: [PATCH 2/3] docs(); fix typo (#1257) In the documentation, when calling `show()`, you logged 'any' in the console, instead of logging 'result' --- src/@ionic-native/plugins/fingerprint-aio/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/fingerprint-aio/index.ts b/src/@ionic-native/plugins/fingerprint-aio/index.ts index 1b7b4204..2c0ea25b 100644 --- a/src/@ionic-native/plugins/fingerprint-aio/index.ts +++ b/src/@ionic-native/plugins/fingerprint-aio/index.ts @@ -39,7 +39,7 @@ export interface FingerprintOptions { * clientSecret: "password", //Only necessary for Android * disableBackup:true //Only for Android(optional) * }) - * .then((result: any) => console.log(any)) + * .then((result: any) => console.log(result)) * .catch((error: any) => console.log(error)); * * ``` From b08e3a8ee19ab3977ffe63dcefdc61c9eae126af Mon Sep 17 00:00:00 2001 From: Thomas Kemmer Date: Sun, 26 Mar 2017 10:02:53 +0200 Subject: [PATCH 3/3] feat(android-full-screen): add cordova-plugin-fullscreen support (#1255) --- .../plugins/android-full-screen/index.ts | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 src/@ionic-native/plugins/android-full-screen/index.ts diff --git a/src/@ionic-native/plugins/android-full-screen/index.ts b/src/@ionic-native/plugins/android-full-screen/index.ts new file mode 100644 index 00000000..00b03914 --- /dev/null +++ b/src/@ionic-native/plugins/android-full-screen/index.ts @@ -0,0 +1,95 @@ +import { Injectable } from '@angular/core'; +import { Cordova, Plugin } from '@ionic-native/core'; + +/** + * @name Android Full Screen + * @description + * This plugin enables developers to offer users a true full screen experience in their Cordova and PhoneGap apps for Android. + * Using Android 4.0+, you can use true full screen in "lean mode", the way you see in apps like YouTube, expanding the app right to the edges of the screen, hiding the status and navigation bars until the user next interacts. This is ideally suited to video or cut-scene content. + * In Android 4.4+, however, you can now enter true full screen, fully interactive immersive mode. In this mode, your app will remain in true full screen until you choose otherwise; users can swipe down from the top of the screen to temporarily display the system UI. + * @usage + * ```typescript + * import { AndroidFullScreen } from '@ionic-native/android-full-screen'; + * + * constructor(private androidFullScreen: AndroidFullScreen) { } + * + * ... + * + * this.androidFullScreen.isImmersiveModeSupported() + * .then(() => this.androidFullScreen.immersiveMode()) + * .catch((error: any) => console.log(error)); + * + * ``` + */ +@Plugin({ + pluginName: 'AndroidFullScreen', + plugin: 'cordova-plugin-fullscreen', + pluginRef: 'AndroidFullScreen', + repo: 'https://github.com/mesmotronic/cordova-plugin-fullscreen', + platforms: ['Android'] +}) +@Injectable() +export class AndroidFullScreen { + /** + * Is this plugin supported? + * @return {Promise} + */ + @Cordova() + isSupported(): Promise { return; } + + /** + * Is immersive mode supported? + * @return {Promise} + */ + @Cordova() + isImmersiveModeSupported(): Promise { return; } + + /** + * The width of the screen in immersive mode. + * @return {Promise} + */ + @Cordova() + immersiveWidth(): Promise { return; } + + /** + * The height of the screen in immersive mode. + * @return {Promise} + */ + @Cordova() + immersiveHeight(): Promise { return; } + + /** + * Hide system UI until user interacts. + * @return {Promise} + */ + @Cordova() + leanMode(): Promise { return; } + + /** + * Show system UI. + * @return {Promise} + */ + @Cordova() + showSystemUI(): Promise { return; } + + /** + * Extend your app underneath the status bar (Android 4.4+ only). + * @return {Promise} + */ + @Cordova() + showUnderStatusBar(): Promise { return; } + + /** + * Extend your app underneath the system UI (Android 4.4+ only). + * @return {Promise} + */ + @Cordova() + showUnderSystemUI(): Promise { return; } + + /** + * Hide system UI and keep it hidden (Android 4.4+ only). + * @return {Promise} + */ + @Cordova() + immersiveMode(): Promise { return; } +}