mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
Correct battery-status "status" event name
This commit is contained in:
parent
3894cb427d
commit
923e384e43
@ -37,7 +37,7 @@ export class BatteryStatus {
|
||||
*/
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'batterylevel'
|
||||
event: 'batterystatus'
|
||||
})
|
||||
static onChange () : Observable<StatusObject> {return}
|
||||
|
||||
@ -73,4 +73,4 @@ export interface StatusObject {
|
||||
* A boolean that indicates whether the device is plugged in
|
||||
*/
|
||||
isPlugged : boolean
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user