API reference
API reference
Select your platform
No SDKs available
No versions available

ovr_Cowatching_SetViewerData Function

Set the current user's viewer data to be shared with copresent users. This can be called when there is an active cowatching session. The data size is limited to 500 characters, and it will eventually become consistent across all users. ovrMessage_Cowatching_SetViewerData will be generated in response.
First call ovr_Message_IsError() to check if an error occurred.
This response has no payload. If no error occurred, the request was successful. Yay!

Signature

ovrRequest ovr_Cowatching_SetViewerData(const char *viewer_data)

Parameters

viewer_data: const char * A string containing data about the current user's viewer state, such as their preferences or settings. This data is shared with copresent users during an active cowatching session and is limited to 500 characters in size. The data will eventually become consistent across all users participating in the session.

Returns