fix(music-controls): fix return types for methods
This commit is contained in:
parent
d845519361
commit
f3407e5582
@ -40,12 +40,12 @@ export interface MusicControlsOptions {
|
|||||||
* hasPrev : false, // show previous button, optional, default: true
|
* hasPrev : false, // show previous button, optional, default: true
|
||||||
* hasNext : false, // show next button, optional, default: true
|
* hasNext : false, // show next button, optional, default: true
|
||||||
* hasClose : true, // show close button, optional, default: false
|
* hasClose : true, // show close button, optional, default: false
|
||||||
*
|
*
|
||||||
* // iOS only, optional
|
* // iOS only, optional
|
||||||
* album : 'Absolution' // optional, default: ''
|
* album : 'Absolution' // optional, default: ''
|
||||||
* duration : 60, // optional, default: 0
|
* duration : 60, // optional, default: 0
|
||||||
* elapsed : 10, // optional, default: 0
|
* elapsed : 10, // optional, default: 0
|
||||||
*
|
*
|
||||||
* // Android only, optional
|
* // Android only, optional
|
||||||
* // text displayed in the status bar when the notification (and the ticker) are updated
|
* // text displayed in the status bar when the notification (and the ticker) are updated
|
||||||
* ticker : 'Now playing "Time is Running Out"'
|
* ticker : 'Now playing "Time is Running Out"'
|
||||||
@ -137,13 +137,13 @@ export class MusicControls {
|
|||||||
* Toggle play/pause:
|
* Toggle play/pause:
|
||||||
* @param isPlaying {boolean}
|
* @param isPlaying {boolean}
|
||||||
*/
|
*/
|
||||||
@Cordova({sync: true})
|
@Cordova()
|
||||||
static updateIsPlaying(isPlaying: boolean): void {}
|
static updateIsPlaying(isPlaying: boolean): void {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggle dismissable:
|
* Toggle dismissable:
|
||||||
* @param dismissable {boolean}
|
* @param dismissable {boolean}
|
||||||
*/
|
*/
|
||||||
@Cordova({sync: true})
|
@Cordova()
|
||||||
static updateDismissable(dismissable: boolean): void {}
|
static updateDismissable(dismissable: boolean): void {}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user