Gesture Recognition
With gesture recognition, you can receive notifications about different device movement patterns, identify device states, and trigger events when the sensor data meets predefined conditions. In some cases, you can also listen to different states (started, in-progress, and ended).
The following gesture events are supported in Tizen devices:
- Double-tap
The device is tapped twice.
- Move to ear
The device is moved near to an ear. The event is detected using the acceleration and proximity sensors.
Figure: Move-to-ear event
- No move
The device is not moved for a while.
- Pick-up
The device is picked up.
- Shake
The device is quickly moved back and forth.
Figure: Shake event
- Snap
The device is moved along a particular axis.
Figure: Axes of the device
The movement is measured with 6 discrete events: +X, -X, +Y, -Y, +Z, and -Z:
- With the display in the portrait mode, the +X, -X, +Z, and -Z snaps are active.
- With the display in the landscape mode, the +Y, -Y, +Z, and -Z snaps are active.
Figure: Snap events +X, +Y, and +Z
Note The snap motion does not operate correctly if the device is tilted improperly. For example, the device must be held straight in a portrait mode for best accuracy. Similarly, when the device is tilted 90 degrees along the Z axis from the above position (+X or -X points to the earth), the snap motion in a landscape mode works best. This means that when a user lies down holding the device, the snap motion may not work accurately. - Tilt
The device is tilted. The event provides changes of the slopes on the X and Y axes, not the current angle of each axis.
Figure: Tilt event
- Turn face down
The device is turned over and the screen is facing downwards.
Figure: Face-down event
- Wrist up
The event occurs when wrist-up gesture is performed (in case of a watch device).
Figure: Wrist-up event
Note |
---|
You can test the gesture recognition functionality only on a target device. The Emulator does not support this feature. |