diff --git a/src/@ionic-native/plugins/battery-status/index.ts b/src/@ionic-native/plugins/battery-status/index.ts index d3999a49e..d096bdad1 100644 --- a/src/@ionic-native/plugins/battery-status/index.ts +++ b/src/@ionic-native/plugins/battery-status/index.ts @@ -1,9 +1,8 @@ import { Injectable } from '@angular/core'; -import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface BatteryStatusResponse { - /** * The battery charge percentage */ @@ -13,7 +12,6 @@ export interface BatteryStatusResponse { * A boolean that indicates whether the device is plugged in */ isPlugged: boolean; - } /** @@ -31,11 +29,9 @@ export interface BatteryStatusResponse { * * * // watch change in battery status - * let subscription = this.batteryStatus.onChange().subscribe( - * (status: BatteryStatusResponse) => { + * const subscription = this.batteryStatus.onChange().subscribe(status => { * console.log(status.level, status.isPlugged); - * } - * ); + * }); * * // stop watch * subscription.unsubscribe(); @@ -53,7 +49,6 @@ export interface BatteryStatusResponse { }) @Injectable() export class BatteryStatus extends IonicNativePlugin { - /** * Watch the change in battery level * @returns {Observable} Returns an observable that pushes a status object @@ -62,7 +57,9 @@ export class BatteryStatus extends IonicNativePlugin { eventObservable: true, event: 'batterystatus' }) - onChange(): Observable { return; } + onChange(): Observable { + return; + } /** * Watch when the battery level goes low @@ -72,7 +69,9 @@ export class BatteryStatus extends IonicNativePlugin { eventObservable: true, event: 'batterylow' }) - onLow(): Observable { return; } + onLow(): Observable { + return; + } /** * Watch when the battery level goes to critial @@ -82,6 +81,7 @@ export class BatteryStatus extends IonicNativePlugin { eventObservable: true, event: 'batterycritical' }) - onCritical(): Observable { return; } - + onCritical(): Observable { + return; + } }