new HardwareButtonsWakeState()
We enter this state when the user presses Home or Sleep on a sleeping
phone. We give immediate feedback by waking the phone up on the press
rather than waiting for the release, but this means we need a special
state so that we don't actually send a home or sleep event on the
key release. Note, however, that this state does set a timer so that
it can send holdhome or holdsleep events. (This means that pressing and
holding sleep will bring up the power menu, even on a sleeping phone.)
Methods
-
enter()
-
Entering the state.
-
exit()
-
Leaving the state.
-
process(type)
-
Process the event, maybe transition the state.
Parameters:
Name Type Description type String Name of the event to process.
Events
-
holdhome
-
When the user holds Home button more than HOLD_INTERVAL.
-
holdsleep
-
When the user holds Sleep button more than HOLD_INTERVAL.