Merge remote-tracking branch 'upstream/master' into v5

This commit is contained in:
Daniel
2018-03-16 17:30:10 +01:00
33 changed files with 827 additions and 374 deletions
@@ -2,27 +2,26 @@ import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } 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 `<icon name>.png` in platforms/android/res/drawable|mipmap
*/
icon?: string;
/** Color */
color?: string;
/**
@@ -30,20 +29,21 @@ export interface BackgroundModeConfiguration {
*/
resume?: boolean;
/** Hidden */
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 +74,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,8 +81,7 @@ export class BackgroundMode extends IonicNativePlugin {
@Cordova({
sync: true
})
enable(): void {
}
enable(): void {}
/**
* Disable the background mode.
@@ -161,8 +159,7 @@ export class BackgroundMode extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
moveToBackground(): void {
}
moveToBackground(): void {}
/**
* Enable GPS-tracking in background (Android).
@@ -171,8 +168,7 @@ export class BackgroundMode extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
disableWebViewOptimizations(): void {
}
disableWebViewOptimizations(): void {}
/**
* Android allows to programmatically move from background to foreground.
@@ -181,8 +177,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.
@@ -191,8 +186,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+.
@@ -201,8 +195,7 @@ export class BackgroundMode extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
excludeFromTaskList(): void {
}
excludeFromTaskList(): void {}
/**
* The method works async instead of isActive() or isEnabled().
@@ -221,8 +214,7 @@ export class BackgroundMode extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
wakeUp(): void {
}
wakeUp(): void {}
/**
* Turn screen on and show app even locked
@@ -231,7 +223,5 @@ export class BackgroundMode extends IonicNativePlugin {
platforms: ['Android'],
sync: true
})
unlock(): void {
}
unlock(): void {}
}