new HardwareButtonsVolumeState()
We enter the volume state when the user presses the volume up or
volume down buttons.
We can fire volumeup and volumedown events from this state
Methods
-
enter(type)
-
Entering the state.
Parameters:
Name Type Description type String Name of the event to process.
-
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.
-
repeat()
-
Trigger repeat actions for volume buttons.
Events
-
volumedown
-
Volume down pressed and released or autorepeated.
-
volumeup
-
Volume up pressed and released or autorepeated.