refactor(DBMeter):

This commit is contained in:
Guille 2016-07-08 00:50:46 +02:00
parent 8030f3d4be
commit 6d87f6ecb0

View File

@ -1,5 +1,7 @@
import {Plugin, Cordova} from './plugin';
import {Observable} from 'rxjs/Observable';
import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable';
/**
* @name DB Meter
* @description This plugin defines a global DBMeter object, which permits to get the decibel values from the microphone.
@ -45,27 +47,27 @@ export class DBMeter {
observable: true,
clearFunction: 'stop'
})
static start (): Observable<any> {return; }
static start(): Observable<any> { return; }
/**
* Stops listening
* @private
*/
@Cordova()
static stop (): Promise<any> {return; }
static stop(): Promise<any> { return; }
/**
* Check if the DB Meter is listening
* @return {Promise<boolean>} Returns a promise that resolves with a boolean that tells us whether the DB meter is listening
*/
@Cordova()
static isListening(): Promise<boolean> {return; }
static isListening(): Promise<boolean> { return; }
/**
* Delete the DB Meter instance
* @return {Promise<any>} Returns a promise that will resolve if the instance has been deleted, and rejects if errors occur.
*/
@Cordova()
static delete(): Promise<any> {return; }
static delete(): Promise<any> { return; }
}