public interface UserActionListener
An object to be notified when an user action has been received in a protocol message.
| Modifier and Type | Method and Description |
|---|---|
void |
onListenerRegistered()
Executes a set of instructions just after the listener has been registered with an
NxtARControlProtocol instance. |
void |
onListenerRemoved()
Executes a set of instructions just after the listener has been removed from an
NxtARControlProtocol instance. |
void |
onUserAction1(DecodedControlAction.Motor motorFlag,
int speed)
Executes a set of instructions when a
DecodedControlAction is decoded with DecodedControlAction.Action.USER_1. |
void |
onUserAction2(DecodedControlAction.Motor motorFlag,
int speed)
Executes a set of instructions when a
DecodedControlAction is decoded with DecodedControlAction.Action.USER_2. |
void |
onUserAction3(DecodedControlAction.Motor motorFlag,
int speed)
Executes a set of instructions when a
DecodedControlAction is decoded with DecodedControlAction.Action.USER_3. |
void onListenerRegistered()
Executes a set of instructions just after the listener has been registered with an NxtARControlProtocol instance.
void onUserAction1(DecodedControlAction.Motor motorFlag, int speed)
Executes a set of instructions when a DecodedControlAction is decoded with DecodedControlAction.Action.USER_1.
void onUserAction2(DecodedControlAction.Motor motorFlag, int speed)
Executes a set of instructions when a DecodedControlAction is decoded with DecodedControlAction.Action.USER_2.
void onUserAction3(DecodedControlAction.Motor motorFlag, int speed)
Executes a set of instructions when a DecodedControlAction is decoded with DecodedControlAction.Action.USER_3.
void onListenerRemoved()
Executes a set of instructions just after the listener has been removed from an NxtARControlProtocol instance.