public class EOS_RTC_Data_Interface
extends com.sun.jna.PointerType
| Constructor and Description |
|---|
EOS_RTC_Data_Interface() |
EOS_RTC_Data_Interface(com.sun.jna.Pointer address) |
| Modifier and Type | Method and Description |
|---|---|
EOS_NotificationId |
addNotifyDataReceived(EOS_RTCData_AddNotifyDataReceivedOptions options,
com.sun.jna.Pointer clientData,
EOS_RTCData_OnDataReceivedCallback completionDelegate)
Register to receive notifications with remote data packet received.
|
EOS_NotificationId |
addNotifyParticipantUpdated(EOS_RTCData_AddNotifyParticipantUpdatedOptions options,
com.sun.jna.Pointer clientData,
EOS_RTCData_OnParticipantUpdatedCallback completionDelegate)
Register to receive notifications when a room participant data status is updated (f.e when connection state changes).
|
void |
removeNotifyDataReceived(EOS_NotificationId notificationId)
Unregister a previously bound notification handler from receiving remote data packets.
|
void |
removeNotifyParticipantUpdated(EOS_NotificationId notificationId)
Unregister a previously bound notification handler from receiving participant updated notifications
|
EOS_EResult |
sendData(EOS_RTCData_SendDataOptions options)
Use this function to send a data packet to the rest of participants.
|
void |
updateReceiving(EOS_RTCData_UpdateReceivingOptions options,
com.sun.jna.Pointer clientData,
EOS_RTCData_OnUpdateReceivingCallback completionDelegate)
Use this function to tweak incoming data options for a room.
|
void |
updateSending(EOS_RTCData_UpdateSendingOptions options,
com.sun.jna.Pointer clientData,
EOS_RTCData_OnUpdateSendingCallback completionDelegate)
Use this function to tweak outgoing data options for a room.
|
public EOS_RTC_Data_Interface(com.sun.jna.Pointer address)
public EOS_RTC_Data_Interface()
public EOS_NotificationId addNotifyDataReceived(EOS_RTCData_AddNotifyDataReceivedOptions options, com.sun.jna.Pointer clientData, EOS_RTCData_OnDataReceivedCallback completionDelegate)
The CompletionDelegate may be called from a thread other than the one from which the SDK is ticking.
clientData - Arbitrary data that is passed back in the CompletionDelegatecompletionDelegate - The callback to be fired when a data packet is receivedEOS_NotificationId.EOS_INVALID_NOTIFICATIONID,
removeNotifyDataReceived(EOS_NotificationId)public void removeNotifyDataReceived(EOS_NotificationId notificationId)
notificationId - The Notification ID representing the registered callbackpublic EOS_EResult sendData(EOS_RTCData_SendDataOptions options)
options - structure containing the parameters for the operation.EOS_EResult.EOS_Success the data packet was queued for sendingEOS_EResult.EOS_InvalidParameters if any of the options are invalidEOS_EResult.EOS_NotFound if the specified room was not foundpublic void updateSending(EOS_RTCData_UpdateSendingOptions options, com.sun.jna.Pointer clientData, EOS_RTCData_OnUpdateSendingCallback completionDelegate)
options - structure containing the parameters for the operation.clientData - Arbitrary data that is passed back in the CompletionDelegatecompletionDelegate - The callback to be fired when the operation completes, either successfully or in errorpublic void updateReceiving(EOS_RTCData_UpdateReceivingOptions options, com.sun.jna.Pointer clientData, EOS_RTCData_OnUpdateReceivingCallback completionDelegate)
options - structure containing the parameters for the operation.clientData - Arbitrary data that is passed back in the CompletionDelegatecompletionDelegate - The callback to be fired when the operation completes, either successfully or in errorpublic EOS_NotificationId addNotifyParticipantUpdated(EOS_RTCData_AddNotifyParticipantUpdatedOptions options, com.sun.jna.Pointer clientData, EOS_RTCData_OnParticipantUpdatedCallback completionDelegate)
The notification is raised when the participant's data status is updated. In order not to miss any participant status changes, applications need to add the notification before joining a room.
If the returned NotificationId is valid, you must call EOS_RTCData_RemoveNotifyParticipantUpdated when you no longer wish to have your CompletionDelegate called.
options - structure containing the parameters for the operation.clientData - Arbitrary data that is passed back in the CompletionDelegatecompletionDelegate - The callback to be fired when a participant changes data statusEOS_NotificationId.EOS_INVALID_NOTIFICATIONID,
removeNotifyParticipantUpdated(EOS_NotificationId),
EOS_RTCData_ParticipantUpdatedCallbackInfo,
EOS_ERTCDataStatuspublic void removeNotifyParticipantUpdated(EOS_NotificationId notificationId)
notificationId - The Notification ID representing the registered callback