public abstract static class Glove.GloveListener extends Device.DeviceListener
Glove
object. Notifications indicate user interaction related events, such as receiving a button press or a input gesture.
This class can also handle low level system messages, such as battery status.Constructor and Description |
---|
GloveListener() |
Modifier and Type | Method and Description |
---|---|
void |
onButtonPressed(int duration)
Called when the glove button is pressed.
|
void |
onLetterDraw(int index,
char[] str)
Called after each letter of a text was drawn by calling
Glove.draw(String) draw}. |
void |
onLetterReceived(char c)
Called when a received gesture is compatible with singe and double tap codded symbols.
|
isEnabled, onDebugMessage, onDeviceFound, onDeviceLost, onErrorMessage, onGestureReceived, onSystemMessage, setEnabled
public void onLetterDraw(int index, char[] str)
Glove.draw(String)
draw}.index
- Index of the letter.str
- Text being drawn.public void onButtonPressed(int duration)
duration
- Duration of the button press.public void onLetterReceived(char c)
DeviceListener.onGestureReceived()
.c
- The letter received.