mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
Revert "chore(package): bump dependencies and lint rules"
This reverts commit 21ad4734fa.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
|
||||
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
||||
/**
|
||||
* @name Native Audio
|
||||
* @description Native Audio Playback
|
||||
@@ -46,9 +45,7 @@ export class NativeAudio extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
preloadSimple(id: string, assetPath: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
preloadSimple(id: string, assetPath: string): Promise<any> {return; }
|
||||
|
||||
/**
|
||||
* Loads an audio file into memory. Optimized for background music / ambient sound. Uses highlevel native APIs with a larger footprint. (iOS: AVAudioPlayer). Can be stopped / looped and used with multiple voices. Can be faded in and out using the delay parameter.
|
||||
@@ -60,15 +57,7 @@ export class NativeAudio extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
preloadComplex(
|
||||
id: string,
|
||||
assetPath: string,
|
||||
volume: number,
|
||||
voices: number,
|
||||
delay: number
|
||||
): Promise<any> {
|
||||
return;
|
||||
}
|
||||
preloadComplex(id: string, assetPath: string, volume: number, voices: number, delay: number): Promise<any> {return; }
|
||||
|
||||
/**
|
||||
* Plays an audio asset
|
||||
@@ -80,9 +69,7 @@ export class NativeAudio extends IonicNativePlugin {
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
})
|
||||
play(id: string, completeCallback?: Function): Promise<any> {
|
||||
return;
|
||||
}
|
||||
play(id: string, completeCallback?: Function): Promise<any> {return; }
|
||||
|
||||
/**
|
||||
* Stops playing an audio
|
||||
@@ -90,9 +77,7 @@ export class NativeAudio extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
stop(id: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
stop(id: string): Promise<any> {return; }
|
||||
|
||||
/**
|
||||
* Loops an audio asset infinitely, this only works for complex assets
|
||||
@@ -100,9 +85,7 @@ export class NativeAudio extends IonicNativePlugin {
|
||||
* @return {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
loop(id: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
loop(id: string): Promise<any> {return; }
|
||||
|
||||
/**
|
||||
* Unloads an audio file from memory
|
||||
@@ -110,9 +93,7 @@ export class NativeAudio extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
unload(id: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
unload(id: string): Promise<any> {return; }
|
||||
|
||||
/**
|
||||
* Changes the volume for preloaded complex assets.
|
||||
@@ -121,7 +102,6 @@ export class NativeAudio extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
setVolumeForComplexAsset(id: string, volume: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
setVolumeForComplexAsset(id: string, volume: number): Promise<any> {return; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user