WVR_StartHandGesture

WVR_EXPORT WVR_Result WVR_StartHandGesture(uint64_t demands = 0x3)

Use this function to start hand gesture feature.

Use this API to start hand gesture module This API must be called by main thread.

Version
API Level 5
Parameters
Return Value
  • WVR_Success: start hand gesture feature successfully.
  • others: WVR_Result mean failure.

How to use

Sample function:

#include <wvr/wvr_hand.h>

if (WVR_StartHandGesture(0x83) == WVR_Success) {
    WVR_HandGestureData data;
    if (WVR_GetHandGestureData(&data) == WVR_Success) {
        // get hand gesture data success
    } else {
        // start hand gesture failed!
    }
    WVR_StopHandGesture();
} else {
    // start hand gesture failed!
}