Interface HardwareActionBindable
- All Superinterfaces:
HardwareBindable
- All Known Subinterfaces:
Action,SettableBooleanValue,SoloValue
Something that can be bound to a hardware action (such as user pressing a button).
- Since:
- API version 10
-
Method Summary
Modifier and TypeMethodDescriptionaddBinding(HardwareAction action) Binds this target to the suppliedHardwareActionso that when the hardware action occurs this target is invoked.voidinvoke()Invokes the action.
-
Method Details
-
addBinding
Binds this target to the suppliedHardwareActionso that when the hardware action occurs this target is invoked. When the binding is no longer needed theHardwareBinding.removeBinding()method can be called on it. -
invoke
void invoke()Invokes the action.- Since:
- API version 1
-