WVR_GetInitErrorString¶
- WVR_EXPORT const char* WVR_GetInitErrorString(WVR_InitError error)
Get the error description for the WVR_InitError.
- Return
- const char*, refer the string description to know what error occurs
- Parameters
- error -
which indicate WVR_InitError type.
- error -
How to use¶
Here is an example for the function:
#include <wvr/wvr.h>
// Loading the WVR Runtime
WVR_InitError eError = WVR_InitError_None;
eError = WVR_Init(WVR_AppType_VRContent);
//Get the error description
if (eError != WVR_InitError_None) {
LOGE("Unable to init VR runtime: %s", WVR_GetInitErrorString(eError));
return false;
}
WVR_InitError includes the following below: