WVR_StartNotifyDeviceInfo

WVR_EXPORT WVR_Result WVR_StartNotifyDeviceInfo(WVR_DeviceType type, uint32_t unBufferSize)

Function to start notification device information.

This API will start notifydeviceinfo module This API must be called by main thread.

Version
API Level 9
Parameters
  • type: Indicates what device type. (refer to WVR_DeviceType)
  • unBufferSize: The size of the information data to device service. The maximum size is 512.
Return Value
  • WVR_Success: start notifydeviceinfo feature successfully.
  • others: WVR_Result mean failure.

How to use

Sample function:

#include <wvr/wvr_notifydeviceinfo.h>

if (WVR_StartNotifyDeviceInfo(WVR_DeviceType_HMD, 256) == WVR_Success) {
    //WVR_UpdateNotifyDeviceInfo
    //WVR_StopNotifyDeviceInfo(WVR_DeviceType_HMD)
} else {
    // start NotifyDeviceInfo failed!
}