mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-24 20:00:16 +08:00
fix lint
This commit is contained in:
parent
7e0300a75f
commit
a6b9a9237a
@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
import { Observable } from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
|
|
||||||
export interface MusicControlsOptions {
|
export interface MusicControlsOptions {
|
||||||
@ -154,21 +154,24 @@ export interface MusicControlsOptions {
|
|||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class MusicControls extends IonicNativePlugin {
|
export class MusicControls extends IonicNativePlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create the media controls
|
* Create the media controls
|
||||||
* @param options {MusicControlsOptions}
|
* @param options {MusicControlsOptions}
|
||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
create(options: MusicControlsOptions): Promise<any> { return; }
|
create(options: MusicControlsOptions): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destroy the media controller
|
* Destroy the media controller
|
||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
destroy(): Promise<any> { return; }
|
destroy(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Subscribe to the events of the media controller
|
* Subscribe to the events of the media controller
|
||||||
@ -177,7 +180,9 @@ export class MusicControls extends IonicNativePlugin {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
observable: true
|
observable: true
|
||||||
})
|
})
|
||||||
subscribe(): Observable<any> { return; }
|
subscribe(): Observable<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start listening for events, this enables the Observable from the subscribe method
|
* Start listening for events, this enables the Observable from the subscribe method
|
||||||
@ -199,7 +204,7 @@ export class MusicControls extends IonicNativePlugin {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
platforms: ['iOS']
|
platforms: ['iOS']
|
||||||
})
|
})
|
||||||
updateElapsed(args: { elapsed: string; isPlaying: boolean; }): void { }
|
updateElapsed(args: { elapsed: string; isPlaying: boolean }): void {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggle dismissable:
|
* Toggle dismissable:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user