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:
@@ -22,7 +22,7 @@ export interface StreamingAudioOptions {
|
||||
* This plugin allows you to stream audio and video in a fullscreen, native player on iOS and Android.
|
||||
*
|
||||
* @usage
|
||||
* ```
|
||||
* ```typescript
|
||||
* import { StreamingMedia, StreamingVideoOptions } from '@ionic-native/streaming-media';
|
||||
*
|
||||
* constructor(private streamingMedia: StreamingMedia) { }
|
||||
@@ -54,7 +54,7 @@ export class StreamingMedia extends IonicNativePlugin {
|
||||
* @param videoUrl {string} The URL of the video
|
||||
* @param options {StreamingVideoOptions} Options
|
||||
*/
|
||||
@Cordova({sync: true})
|
||||
@Cordova({ sync: true })
|
||||
playVideo(videoUrl: string, options?: StreamingVideoOptions): void { }
|
||||
|
||||
/**
|
||||
@@ -62,25 +62,25 @@ export class StreamingMedia extends IonicNativePlugin {
|
||||
* @param audioUrl {string} The URL of the audio stream
|
||||
* @param options {StreamingAudioOptions} Options
|
||||
*/
|
||||
@Cordova({sync: true})
|
||||
@Cordova({ sync: true })
|
||||
playAudio(audioUrl: string, options?: StreamingAudioOptions): void { }
|
||||
|
||||
/**
|
||||
* Stops streaming audio
|
||||
*/
|
||||
@Cordova({sync: true})
|
||||
@Cordova({ sync: true })
|
||||
stopAudio(): void { }
|
||||
|
||||
/**
|
||||
* Pauses streaming audio
|
||||
*/
|
||||
@Cordova({sync: true, platforms: ['iOS']})
|
||||
@Cordova({ sync: true, platforms: ['iOS'] })
|
||||
pauseAudio(): void { }
|
||||
|
||||
/**
|
||||
* Resumes streaming audio
|
||||
*/
|
||||
@Cordova({sync: true, platforms: ['iOS']})
|
||||
@Cordova({ sync: true, platforms: ['iOS'] })
|
||||
resumeAudio(): void { }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user