Release control of the Button. Configurations of color and events will be reset and any standard functionality assigned to the button will be restored.
Determines whether it is currently open.
This will cause the device to emit events for the specified interaction with this button. An observable is returned that emits events when the interaction occurs.
The interaction to listen for.
Open the button for control. When the button is opened for control, any other functionality assigned to the button will be disabled until control is released again through IButton.close.
An optional list of button interactions. The button will start emitting events for these interactions, see IButton.listenFor.
Set the color and mode of the LED. If mode is not specified, the default mode is LedMode.on.
This will cause the device to stop emitting events for the specified interaction with this button.
The interaction to stop listening for.
Represents a button on the device that can be controlled. A button can be opened to listen for interactions, such as presses. Some buttons may also have an LED that can be controlled.