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

ovr_GroupPresence_SetMatchSession Function

Replaces the user's current ovr_GroupPresenceOptions_SetMatchSessionId for the provided one. Use this to update the user's current match session id while keeping all other GroupPresence parameters the same. ovr_GroupPresenceOptions_SetMatchSessionId works in conjuction with ovr_GroupPresenceOptions_SetLobbySessionId to determine if users are playing together. If a user's match and lobby session ids are the same, they should be in the same multiplayer instance together. Users with the same lobby session id but different match session ids may be in the same lobby for things like voice chat while in different instances in your app. WARNING match session id is often treated the same as lobby session id, but this is in fact a distinct parameter and is not used for travel from the Meta Quest Platform. NOTE instead of using the standalone API, we recommend setting all GroupPresence parameters in one call to ovr_GroupPresence_Set(). ovrMessage_GroupPresence_SetMatchSession 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_GroupPresence_SetMatchSession(const char *id)

Parameters

id: const char * id is the unique identifier of the match session to set, replacing the user's current ovr_GroupPresenceOptions_SetMatchSessionId.

Returns