mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-17 00:51:07 +08:00
fix(background-mode): isEnabled and isActive return booleans
fixes #908
This commit is contained in:
parent
1841220359
commit
ba77fd70c3
@ -76,17 +76,21 @@ export class BackgroundMode {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if background mode is enabled or not.
|
* Checks if background mode is enabled or not.
|
||||||
* @returns {Promise<boolean>} returns a promise that resolves with boolean that indicates if the background mode is enabled.
|
* @returns {boolean} returns a boolean that indicates if the background mode is enabled.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova({
|
||||||
static isEnabled(): Promise<boolean> { return; }
|
sync: true
|
||||||
|
})
|
||||||
|
static isEnabled(): boolean { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Can be used to get the information if the background mode is active.
|
* Can be used to get the information if the background mode is active.
|
||||||
* @returns {Promise<boolean>} returns a promise that resolves with boolean that indicates if the background mode is active.
|
* @returns {boolean} returns a boolean that indicates if the background mode is active.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova({
|
||||||
static isActive(): Promise<boolean> { return; }
|
sync: true
|
||||||
|
})
|
||||||
|
static isActive(): boolean { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Override the default title, ticker and text.
|
* Override the default title, ticker and text.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user