WVR_UnregisterTrackerInfoCallback¶
-
WVR_EXPORT WVR_Result WVR_UnregisterTrackerInfoCallback()
Function to unregister an info notify of tracker.
- Version
- API Level 9
- Return Value
WVR_Success
: start the tracker feature successfully.others
: means failure. (Refer to WVR_Result.)
Warning
- This function only works at API level 9 or later.
How to use¶
Here is an example for the function:
- Header & global variable.
#include <wvr/wvr.h> // for enum WVR_SupportedFeature
#include <wvr/wvr_tracker.h>
#include <wvr/wvr_types.h>
bool gRunningTR = false;
- Start tracker feature first if it has not been started yet. (See also WVR Supported Features)
if (WVR_GetSupportedFeatures() & WVR_SupportedFeature_Tracker) { // the tracker feature is supported or not
WVR_Result res = WVR_StartTracker();
if (res == WVR_Success) gRunningTR = true;
}
- Use function WVR_UnregisterTrackerInfoCallback to unregister callback function. Then, the implemented callback function will not be called.
if (gRunningTR) {
WVR_Result ret = WVR_UnregisterTrackerInfoCallback();
}
Note
- See also WVR_RegisterTrackerInfoCallback.
- See also Tracker Info Notification.