[View] [Edit] [Lock] [References] [Attachments] [History] [Home] [Changes] [Search] [Help]
api[www,BateryStatus] code
DOM
subclass: #BatteryManager
instanceVariableNames: ''
category: #BatteryStatus!
BatteryManager comment: '
Provides information about the battery status of the hosting device.
http://www.w3.org/TR/battery-status/
@2012 Alejandro Reimondo [email protected]
'!
! BrowserNavigator methodsFor: #BatteryStatus !
battery
" Return the BatteryManager. "
^BatteryManager @ (self basicAt: #battery)! !
BatteryManager buildAccessors: #(
onchargingchange onchargingtimechange
ondischargingtimechange onlevelchange
)!
BatteryManager buildBooleanGetters: #(
charging
)!
BatteryManager buildNumberGetters: #(
chargingTime
dischargingTime
level
)!