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