Merge in v5 code

This commit is contained in:
Ibby Hadeed
2017-12-28 07:28:44 -05:00
parent d43fe72f7b
commit 0f9c21ab42
255 changed files with 11473 additions and 6501 deletions
@@ -1,5 +1,6 @@
import { Injectable } from '@angular/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* @name Native Audio
* @description Native Audio Playback
@@ -45,7 +46,9 @@ 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.
@@ -57,7 +60,9 @@ 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
@@ -69,7 +74,9 @@ 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
@@ -77,7 +84,9 @@ 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
@@ -85,7 +94,9 @@ 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
@@ -93,7 +104,9 @@ 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.
@@ -102,6 +115,8 @@ 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;
}
}