mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-17 09:01:07 +08:00
refractor(backgroundmode): fix return types
This commit is contained in:
parent
8d6c2dfb9a
commit
785646800b
@ -49,7 +49,7 @@ export class BackgroundMode {
|
|||||||
* 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(): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if background mode is enabled or not.
|
* Checks if background mode is enabled or not.
|
||||||
@ -73,7 +73,7 @@ export class BackgroundMode {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
platforms: ['Android']
|
platforms: ['Android']
|
||||||
})
|
})
|
||||||
static setDefaults(options?: Configure): void { }
|
static setDefaults(options?: Configure): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Modify the displayed information.
|
* Modify the displayed information.
|
||||||
@ -83,7 +83,7 @@ export class BackgroundMode {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
platforms: ['Android']
|
platforms: ['Android']
|
||||||
})
|
})
|
||||||
static configure(options?: Configure): void { }
|
static configure(options?: Configure): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when background mode is activated.
|
* Called when background mode is activated.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user