WVR_UpdateNotifyDeviceInfo

WVR_EXPORT void WVR_UpdateNotifyDeviceInfo(WVR_DeviceType type, const char * dataValue)

Function to update a parameter string to the device service.

Version
API Level 9
Parameters
  • type: Indicates what device type. (refer to WVR_DeviceType)
  • dataValue: Send the string to let the app communicate with the device service.

How to use

Here is an example for the function:

#include <wvr/wvr_notifydeviceinfo.h>

if (WVR_StartNotifyDeviceInfo(WVR_DeviceType_HMD, 256) == WVR_Success) {
    char sourceString[] = "NotifyDS-1ABC";

    //communicate with the device service
    WVR_UpdateNotifyDeviceInfo(WVR_DeviceType_HMD, sourceString);
}