Removed db-meter - broken

This commit is contained in:
Max Lynch 2021-09-13 15:51:39 -05:00
parent 7c9e566110
commit 270af74627

View File

@ -1,84 +0,0 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs';
/**
* @name DB Meter
* @description This plugin defines a global DBMeter object, which permits to get the decibel values from the microphone.
* @usage
* ```typescript
* import { DBMeter } from '@ionic-native/db-meter/ngx';
*
* constructor(private dbMeter: DBMeter) { }
*
* ...
*
*
* // Start listening
* let subscription = this.dbMeter.start().subscribe(
* data => console.log(data)
* );
*
* // Check if we are listening
* this.dbMeter.isListening().then(
* isListening => console.log(isListening)
* );
*
* // Stop listening
* subscription.unsubscribe();
*
* // Delete DBMeter instance from memory
* this.dbMeter.delete().then(
* () => console.log('Deleted DB Meter instance'),
* error => console.log('Error occurred while deleting DB Meter instance')
* );
* ```
*/
@Plugin({
pluginName: 'DBMeter',
plugin: 'cordova-plugin-dbmeter',
pluginRef: 'DBMeter',
repo: 'https://github.com/akofman/cordova-plugin-dbmeter',
platforms: ['Android', 'iOS'],
})
@Injectable()
export class DBMeter extends IonicNativePlugin {
/**
* Starts listening
* @returns {Observable<any>} Returns an observable. Subscribe to start listening. Unsubscribe to stop listening.
*/
@Cordova({
observable: true,
clearFunction: 'stop',
})
start(): Observable<any> {
return;
}
/**
* Stops listening
* @hidden
*/
@Cordova()
stop(): Promise<any> {
return;
}
/**
* Check if the DB Meter is listening
* @returns {Promise<boolean>} Returns a promise that resolves with a boolean that tells us whether the DB meter is listening
*/
@Cordova()
isListening(): Promise<boolean> {
return;
}
/**
* Delete the DB Meter instance
* @returns {Promise<any>} Returns a promise that will resolve if the instance has been deleted, and rejects if errors occur.
*/
@Cordova()
delete(): Promise<any> {
return;
}
}