This function is part of the RTC Interface.
Register to receive notifications when disconnected from the room. If the returned NotificationId is valid, you must call
EOS_RTC_RemoveNotifyDisconnected when you no longer wish to have your CompletionDelegate called.
This function will always return EOS_INVALID_NOTIFICATIONID when used with lobby RTC room. To be notified of the connection
status of a Lobby-managed RTC room, use the EOS_Lobby_AddNotifyRTCRoomConnectionChanged function instead.
Return Value
Notification ID representing the registered callback if successful, an invalid NotificationId if not
See Also
EOS_INVALID_NOTIFICATIONID, EOS_RTC_RemoveNotifyDisconnected
Parameters
RTC.RTCInterface.AddNotifyDisconnected
Parameter Type And Name
|
Usage Information
|
AddNotifyDisconnectedOptions options
|
|
object clientData
|
Arbitrary data that is passed back in the CompletionDelegate
|
OnDisconnectedCallback completionDelegate
|
The callback to be fired when a presence change occurs
|
This function enables your callback (the CompletionDelegate
parameter) to respond to events that happen on the back-end service. Remember to remove your callback function when it is no longer needed.
Because this function is asynchronous, it employs a callback of type EOS_RTC_OnDisconnectedCallback to report the results of its operation.
Callback Parameters
RTC.OnDisconnectedCallback
Parameter Type And Name
|
Usage Information
|
DisconnectedCallbackInfo data
|
This struct is passed in with a call to EOS_RTC_AddNotifyDisconnected registered event.
|