|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SessionListener
SessionListener stands as a level of abstraction between a user of Frog and an actual Device (DeviceListener). It can receive device events passed up from a Session as well as if a gesture was recognized by Session.
| Method Summary | |
|---|---|
void |
accelerationPerformed(AccelEvent e)
Executed whenever a Session detects an acceleration from a Device it is listening to. |
void |
gestureComplete(boolean good,
Device d)
Executed whenever a Session detects a complete gesture from a Device it is listening to. |
void |
gestureRecognized(GestureModel g)
Executed whenever a Session has recognized a gesture performed by the Device it is listening to (requires being in recognition mode). |
void |
unexpectedDisconnect(Device d)
Executed whenever a Session detects an unexpected disconnect from a Device it is listening to. |
| Method Detail |
|---|
void accelerationPerformed(AccelEvent e)
accelerationPerformed in interface DeviceListenere - contains the acceleration data and the calling device
void gestureComplete(boolean good,
Device d)
gestureComplete in interface DeviceListenergood - true if this gesture is complete.
false if this gesture should be discarded.d - the device that completed the gesturevoid unexpectedDisconnect(Device d)
unexpectedDisconnect in interface DeviceListenerd - Device that was unexpectedly disconnectedvoid gestureRecognized(GestureModel g)
g - The gesture recognizedSession.inRecognitionMode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||