mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Merge in v5 code
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
/**
|
||||
@@ -39,7 +39,9 @@ export class NativeRingtones extends IonicNativePlugin {
|
||||
* @return {Promise<any>} Returns a promise that resolves when ringtones found successfully
|
||||
*/
|
||||
@Cordova()
|
||||
getRingtone(): Promise<any> { return; }
|
||||
getRingtone(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function starts playing the ringtone
|
||||
@@ -47,7 +49,9 @@ export class NativeRingtones extends IonicNativePlugin {
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova()
|
||||
playRingtone(ringtoneUri: string): Promise<any> { return; }
|
||||
playRingtone(ringtoneUri: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function stops playing the ringtone
|
||||
@@ -55,5 +59,7 @@ export class NativeRingtones extends IonicNativePlugin {
|
||||
* @return {Promise<any>} Returns a promise
|
||||
*/
|
||||
@Cordova()
|
||||
stopRingtone(ringtoneUri: string): Promise<any> { return; }
|
||||
stopRingtone(ringtoneUri: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user