Class: HardwareButtonsSleepState

HardwareButtonsSleepState

new HardwareButtonsSleepState()

We enter the sleep state when the user presses the Sleep button We can fire sleep, or holdsleep events from this state.

We enter the sleep state when the user presses the Sleep button We can fire sleep, or holdsleep events from this state.

Source:

Events

holdsleep

When the user holds Sleep button more than HOLD_INTERVAL.

When the user holds Sleep button more than HOLD_INTERVAL.

Source:

sleep

When the user releases Sleep button before HOLD_INTERVAL.

When the user releases Sleep button before HOLD_INTERVAL.

Source: