mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
style(): unify docs and spacing (#1448)
* typo(barcode-scanner): fixe circle lint error
* typo(docs): Unified the documentations
In some plugins the typescript markup was missing.
I also unified the console.log string from console.log("hello") to console.log('Hello') so any plugin page look the same.
This commit is contained in:
@@ -25,7 +25,7 @@ export interface MusicControlsOptions {
|
||||
* Handle also headset event (plug, unplug, headset button).
|
||||
*
|
||||
* @usage
|
||||
* ```
|
||||
* ```typescript
|
||||
* import { MusicControls } from '@ionic-native/music-controls';
|
||||
*
|
||||
* constructor(private musicControls: MusicControls) { }
|
||||
@@ -115,14 +115,14 @@ export class MusicControls extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
create(options: MusicControlsOptions): Promise<any> {return; }
|
||||
create(options: MusicControlsOptions): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
* Destroy the media controller
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
destroy(): Promise<any> {return; }
|
||||
destroy(): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
* Subscribe to the events of the media controller
|
||||
@@ -131,25 +131,25 @@ export class MusicControls extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
observable: true
|
||||
})
|
||||
subscribe(): Observable<any> {return; }
|
||||
subscribe(): Observable<any> { return; }
|
||||
|
||||
/**
|
||||
* Start listening for events, this enables the Observable from the subscribe method
|
||||
*/
|
||||
@Cordova({sync: true})
|
||||
listen(): void {}
|
||||
@Cordova({ sync: true })
|
||||
listen(): void { }
|
||||
|
||||
/**
|
||||
* Toggle play/pause:
|
||||
* @param isPlaying {boolean}
|
||||
*/
|
||||
@Cordova()
|
||||
updateIsPlaying(isPlaying: boolean): void {}
|
||||
updateIsPlaying(isPlaying: boolean): void { }
|
||||
|
||||
/**
|
||||
* Toggle dismissable:
|
||||
* @param dismissable {boolean}
|
||||
*/
|
||||
@Cordova()
|
||||
updateDismissable(dismissable: boolean): void {}
|
||||
updateDismissable(dismissable: boolean): void { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user