WVR_SetParameters

WVR_EXPORT void WVR_SetParameters(WVR_DeviceType type, const char * pchValue)

Function to set a parameter string to the device service.

Version
API Level 1
Parameters
  • type: Indicates what device type. (refer to WVR_DeviceType)
  • pchValue: Set string to let app communicate with the device service.

How to use

Here is an example for the function:

#include <wvr/wvr_device.h>

char sourceString[256] = "camera=true";

//communicate with the device service
//set "camera=true" string to force the use of the camera functions
WVR_SetParameters(WVR_DeviceType_HMD, sourceString);

The device service needs to implement the setParameters function to set the string from the content app.