public interface BatteryManager extends EventTarget
Modifier and Type | Method and Description |
---|---|
EventRemover |
addEventListener(String type,
EventListener listener)
Register an event handler of a specific event type on the
EventTarget . |
EventRemover |
addEventListener(String type,
EventListener listener,
boolean useCapture)
Register an event handler of a specific event type on the
EventTarget . |
boolean |
dispatchEvent(Event evt)
Dispatch an event to this
EventTarget . |
double |
getChargingTime() |
double |
getDischargingTime() |
double |
getLevel() |
EventListener |
getOnchargingchange() |
EventListener |
getOnchargingtimechange() |
EventListener |
getOndischargingtimechange() |
EventListener |
getOnlevelchange() |
boolean |
isCharging() |
void |
removeEventListener(String type,
EventListener listener)
Removes an event listener from the
EventTarget . |
void |
removeEventListener(String type,
EventListener listener,
boolean useCapture)
Removes an event listener from the
EventTarget . |
void |
setOnchargingchange(EventListener arg) |
void |
setOnchargingtimechange(EventListener arg) |
void |
setOndischargingtimechange(EventListener arg) |
void |
setOnlevelchange(EventListener arg) |
boolean isCharging()
double getChargingTime()
double getDischargingTime()
double getLevel()
EventListener getOnchargingchange()
void setOnchargingchange(EventListener arg)
EventListener getOnchargingtimechange()
void setOnchargingtimechange(EventListener arg)
EventListener getOndischargingtimechange()
void setOndischargingtimechange(EventListener arg)
EventListener getOnlevelchange()
void setOnlevelchange(EventListener arg)
EventRemover addEventListener(String type, EventListener listener)
EventTarget
EventTarget
.addEventListener
in interface EventTarget
EventRemover addEventListener(String type, EventListener listener, boolean useCapture)
EventTarget
EventTarget
.addEventListener
in interface EventTarget
boolean dispatchEvent(Event evt)
EventTarget
EventTarget
.dispatchEvent
in interface EventTarget
void removeEventListener(String type, EventListener listener)
EventTarget
EventTarget
.removeEventListener
in interface EventTarget
void removeEventListener(String type, EventListener listener, boolean useCapture)
EventTarget
EventTarget
.removeEventListener
in interface EventTarget
Copyright © 2018. All rights reserved.