gesture_callback_f

Gesture callback function prototype.

Synopsis:

#include <gestures/types.h>
 
typedef void(* gesture_callback_f)(struct gesture_base *gesture, mtouch_event_t *event, void *param, int async);

Since:

BlackBerry 10.0.0

Library:

libgestures (For the qcc command, use -l gestures to link against this library)

Description:

This callback function is invoked every time a gesture changes state, with the exception of the transition from UNRECOGNIZED to FAILED.

Note that if the event passed to the callback is NULL, it means the callback was invoked following a timer callback (as opposed to an event coming in). The async parameter indicates which thread invoked the callback: