From 4bb8472e6bdf255df800e4f16233bbb01a688be7 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 13 Sep 2021 15:15:15 -0500 Subject: [PATCH] Removed native-ringtones - unmaintained --- .../plugins/native-ringtones/index.ts | 64 ------------------- 1 file changed, 64 deletions(-) delete mode 100644 src/@ionic-native/plugins/native-ringtones/index.ts diff --git a/src/@ionic-native/plugins/native-ringtones/index.ts b/src/@ionic-native/plugins/native-ringtones/index.ts deleted file mode 100644 index 5a1403e9a..000000000 --- a/src/@ionic-native/plugins/native-ringtones/index.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; -import { Injectable } from '@angular/core'; - -/** - * @beta - * @name Native Ringtones - * @description - * The plugin helps get the native ringtones list on Android or IOS devices. - * And you can also use this plugin to play or stop the native ringtones and custom ringtones(added in the www folder). - * - * @usage - * ``` - * import { NativeRingtones } from '@ionic-native/native-ringtones/ngx'; - * - * - * constructor(private ringtones: NativeRingtones) { } - * - * ... - * this.ringtones.getRingtone().then((ringtones) => { console.log(ringtones); }); - * - * this.ringtones.playRingtone('assets/ringtones/sound_1.caf'); - * - * this.ringtones.stopRingtone('assets/ringtones/sound_1.caf'); - * - * ``` - */ -@Plugin({ - pluginName: 'native-ringtones', - plugin: 'cordova-plugin-native-ringtones', - pluginRef: 'cordova.plugins.NativeRingtones', - repo: 'https://github.com/TongZhangzt/cordova-plugin-native-ringtones', - platforms: ['Android', 'iOS'], -}) -@Injectable() -export class NativeRingtones extends IonicNativePlugin { - /** - * Get the ringtone list of the device - * @return {Promise} Returns a promise that resolves when ringtones found successfully - */ - @Cordova() - getRingtone(): Promise { - return; - } - - /** - * This function starts playing the ringtone - * @param {string} ringtoneUri The path to the ringtone file - * @return {Promise} Returns a promise - */ - @Cordova() - playRingtone(ringtoneUri: string): Promise { - return; - } - - /** - * This function stops playing the ringtone - * @param {string} ringtoneUri The path to the ringtone file - * @return {Promise} Returns a promise - */ - @Cordova() - stopRingtone(ringtoneUri: string): Promise { - return; - } -}