tslint & cleanup

This commit is contained in:
Ibrahim Hadeed 2016-06-09 10:28:46 -04:00
parent dcfe04861e
commit aec95709bc

View File

@ -20,19 +20,19 @@ import {Plugin, Cordova} from './plugin';
export class BackgroundMode { export class BackgroundMode {
/** /**
* Enable the background mode. * Enable the background mode.
* Once called, prevents the app from being puased while in background. * Once called, prevents the app from being paused while in background.
*/ */
@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.
@ -52,7 +52,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.
@ -61,7 +61,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
* Can be used to get notified or run function when the background mode has been activated, deactivated or failed. * Can be used to get notified or run function when the background mode has been activated, deactivated or failed.
@ -76,7 +76,7 @@ export class BackgroundMode {
/** /**
* Configurations items that can be updated. * Configurations items that can be updated.
*/ */
export interface Configure{ export interface Configure {
/** /**
*Title of the background task *Title of the background task
*/ */
@ -95,11 +95,11 @@ export interface Configure{
/** /**
*Boolean, if true plugin will not display a notification. Default is false. *Boolean, if true plugin will not display a notification. Default is false.
*/ */
silent?:boolean; silent?: boolean;
/** /**
*Boolean. By default the app will come to foreground when taping on the notification. If false, plugin wont come to foreground when tapped. *Boolean. By default the app will come to foreground when taping on the notification. If false, plugin wont come to foreground when tapped.
*/ */
resume?:boolean; resume?: boolean;
} }