Skip to content

Commit

Permalink
fix(background-mode): isEnabled and isActive return booleans
Browse files Browse the repository at this point in the history
fixes #908
  • Loading branch information
ihadeed committed Dec 27, 2016
1 parent 1841220 commit ba77fd7
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/plugins/backgroundmode.ts
Expand Up @@ -76,17 +76,21 @@ export class BackgroundMode {

/**
* 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()
static isEnabled(): Promise<boolean> { return; }
@Cordova({
sync: true
})
static isEnabled(): boolean { return; }

/**
* 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()
static isActive(): Promise<boolean> { return; }
@Cordova({
sync: true
})
static isActive(): boolean { return; }

/**
* Override the default title, ticker and text.
Expand Down

0 comments on commit ba77fd7

Please sign in to comment.