refactor(backgroundMode):

This commit is contained in:
Guille 2016-07-08 00:35:11 +02:00
parent b8afd70a42
commit 92a4608a5b

View File

@ -1,4 +1,4 @@
import {Plugin, Cordova} from './plugin'; import { Cordova, Plugin } from './plugin';
/** /**
* @name Background Mode * @name Background Mode
@ -39,28 +39,28 @@ export class BackgroundMode {
@Cordova({ @Cordova({
sync: true sync: true
}) })
static enable(): void {} static enable(): void { }
/** /**
* Disable the background mode. * Disable the background mode.
* Once the background mode has been disabled, the app will be paused when in background. * Once the background mode has been disabled, the app will be paused when in background.
*/ */
@Cordova() @Cordova()
static disable(): void {} static disable(): void { }
/** /**
* Checks if background mode is enabled or not. * Checks if background mode is enabled or not.
* @returns {boolean} returns a true of false if the background mode is enabled. * @returns {boolean} returns a true of false if the background mode is enabled.
*/ */
@Cordova() @Cordova()
static isEnabled(): Promise<boolean> {return; } static isEnabled(): Promise<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 {boolean} returns tru or flase if the background mode is active. * @returns {boolean} returns tru or flase if the background mode is active.
*/ */
@Cordova() @Cordova()
static isActive(): Promise<boolean> {return; } static isActive(): Promise<boolean> { return; }
/** /**
* Override the default title, ticker and text. * Override the default title, ticker and text.
@ -70,7 +70,7 @@ export class BackgroundMode {
@Cordova({ @Cordova({
platforms: ['Android'] platforms: ['Android']
}) })
static setDefaults(options?: Configure): void {} static setDefaults(options?: Configure): void { }
/** /**
* Modify the displayed information. * Modify the displayed information.
@ -80,7 +80,7 @@ export class BackgroundMode {
@Cordova({ @Cordova({
platforms: ['Android'] platforms: ['Android']
}) })
static update(options?: Configure): void {} static update(options?: Configure): void { }
/** /**
* Sets a callback for a specific event * Sets a callback for a specific event
@ -90,7 +90,7 @@ export class BackgroundMode {
@Cordova({ @Cordova({
sync: true sync: true
}) })
static on(eventName: string, callback: any): void {} static on(eventName: string, callback: any): void { }
} }
/** /**