Check shake gesture support
Check if shake gesture is supported by device
#include #include <gesture_recognition.h>
#include <dlog.h> // for logging purposes
void
check_shake_gesture_support() {
bool value;
int ret;
ret = gesture_is_supported(GESTURE_SHAKE, &value);
if(ret == GESTURE_ERROR_NONE)
LOGI("Gesture is %ssupported", value? "" : "not ");
else if(ret == ACTIVITY_ERROR_NOT_SUPPORTED)
LOGI("Gesture is not supported");
}