public class EOS_RTC_Interface
extends com.sun.jna.PointerType
EOS_Platform_Interface.getRTCInterface()| Constructor and Description |
|---|
EOS_RTC_Interface() |
EOS_RTC_Interface(com.sun.jna.Pointer address) |
| Modifier and Type | Method and Description |
|---|---|
EOS_NotificationId |
addNotifyDisconnected(EOS_RTC_AddNotifyDisconnectedOptions options,
com.sun.jna.Pointer clientData,
EOS_RTC_OnDisconnectedCallback completionDelegate)
Register to receive notifications when disconnected from the room.
|
EOS_NotificationId |
addNotifyParticipantStatusChanged(EOS_RTC_AddNotifyParticipantStatusChangedOptions options,
com.sun.jna.Pointer clientData,
EOS_RTC_OnParticipantStatusChangedCallback completionDelegate)
Register to receive notifications when a participant's status changes (e.g: join or leave the room), or when the participant is added or removed
from an applicable block list (e.g: Epic block list and/or current platform's block list).
|
EOS_NotificationId |
addNotifyRoomStatisticsUpdated(EOS_RTC_AddNotifyRoomStatisticsUpdatedOptions options,
com.sun.jna.Pointer clientData,
EOS_RTC_OnRoomStatisticsUpdatedCallback statisticsUpdateHandler)
Register to receive notifications to receiving periodical statistics update.
|
void |
blockParticipant(EOS_RTC_BlockParticipantOptions options,
com.sun.jna.Pointer clientData,
EOS_RTC_OnBlockParticipantCallback completionDelegate)
Use this function to block a participant already connected to the room.
|
EOS_RTC_Audio_Interface |
getAudioInterface()
Get a handle to the Audio interface
|
EOS_RTC_Data_Interface |
getDataInterface()
Get a handle to the Data interface
|
void |
joinRoom(EOS_RTC_JoinRoomOptions options,
com.sun.jna.Pointer clientData,
EOS_RTC_OnJoinRoomCallback completionDelegate)
Use this function to join a room.
|
void |
leaveRoom(EOS_RTC_LeaveRoomOptions options,
com.sun.jna.Pointer clientData,
EOS_RTC_OnLeaveRoomCallback completionDelegate)
Use this function to leave a room and clean up all the resources associated with it.
|
void |
removeNotifyDisconnected(EOS_NotificationId notificationId)
Unregister a previously bound notification handler from receiving room disconnection notifications
|
void |
removeNotifyParticipantStatusChanged(EOS_NotificationId notificationId)
Unregister a previously bound notification handler from receiving participant status change notifications
|
void |
removeNotifyRoomStatisticsUpdated(EOS_NotificationId notificationId)
Unregister a previously bound notification handler from receiving periodical statistics update notifications
|
EOS_EResult |
setRoomSetting(EOS_RTC_SetRoomSettingOptions options)
Use this function to control settings for the specific room.
|
EOS_EResult |
setSetting(EOS_RTC_SetSettingOptions options)
Use this function to control settings.
|
public EOS_RTC_Interface(com.sun.jna.Pointer address)
public EOS_RTC_Interface()
public EOS_RTC_Audio_Interface getAudioInterface()
public EOS_RTC_Data_Interface getDataInterface()
public void joinRoom(EOS_RTC_JoinRoomOptions options, com.sun.jna.Pointer clientData, EOS_RTC_OnJoinRoomCallback completionDelegate)
This function does not need to called for the Lobby RTC Room system; doing so will return EOS_AccessDenied. The lobby system will automatically join and leave RTC Rooms for all lobbies that have RTC rooms enabled.
options - structure containing the parameters for the operation.clientData - Arbitrary data that is passed back in the CompletionDelegatecompletionDelegate - a callback that is fired when the async operation completes, either successfully or in errorpublic void leaveRoom(EOS_RTC_LeaveRoomOptions options, com.sun.jna.Pointer clientData, EOS_RTC_OnLeaveRoomCallback completionDelegate)
This function does not need to called for the Lobby RTC Room system; doing so will return EOS_AccessDenied. The lobby system will automatically join and leave RTC Rooms for all lobbies that have RTC rooms enabled.
options - structure containing the parameters for the operation.clientData - Arbitrary data that is passed back in the CompletionDelegatecompletionDelegate - a callback that is fired when the async operation completes, either successfully or in errorpublic void blockParticipant(EOS_RTC_BlockParticipantOptions options, com.sun.jna.Pointer clientData, EOS_RTC_OnBlockParticipantCallback completionDelegate)
options - structure containing the parameters for the operation.clientData - Arbitrary data that is passed back in the CompletionDelegatecompletionDelegate - a callback that is fired when the async operation completes, either successfully or in errorpublic EOS_NotificationId addNotifyDisconnected(EOS_RTC_AddNotifyDisconnectedOptions options, com.sun.jna.Pointer clientData, EOS_RTC_OnDisconnectedCallback completionDelegate)
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.
clientData - Arbitrary data that is passed back in the CompletionDelegatecompletionDelegate - The callback to be fired when a participant is disconnected from the roomEOS_NotificationId.EOS_INVALID_NOTIFICATIONID,
removeNotifyDisconnected(EOS_NotificationId)public void removeNotifyDisconnected(EOS_NotificationId notificationId)
notificationId - The Notification ID representing the registered callbackpublic EOS_NotificationId addNotifyParticipantStatusChanged(EOS_RTC_AddNotifyParticipantStatusChangedOptions options, com.sun.jna.Pointer clientData, EOS_RTC_OnParticipantStatusChangedCallback completionDelegate)
If you register to this notification before joining a room, you will receive a notification for every member already in the room when you join said room. This allows you to know who is already in the room when you join.
To be used effectively with a Lobby-managed RTC room, this should be registered during the EOS_Lobby_CreateLobby or EOS_Lobby_JoinLobby completion callbacks when the ResultCode is EOS_Success. If this notification is registered after that point, it is possible to miss notifications for already-existing room participants.
You can use this notification to detect internal automatic RTC blocks due to block lists. When a participant joins a room and while the system resolves the block list status of said participant, the participant is set to blocked and you'll receive a notification with ParticipantStatus set to EOS_RTCPS_Joined and bParticipantInBlocklist set to true. Once the block list status is resolved, if the player is not in any applicable block list(s), it is then unblocked and a new notification is sent with ParticipantStatus set to EOS_RTCPS_Joined and bParticipantInBlocklist set to false.
clientData - Arbitrary data that is passed back in the CompletionDelegatecompletionDelegate - The callback to be fired when a participant changes statusThis notification is also raised when the local user joins the room, but NOT when the local user leaves the room.
EOS_NotificationId.EOS_INVALID_NOTIFICATIONID,
removeNotifyParticipantStatusChanged(EOS_NotificationId)public void removeNotifyParticipantStatusChanged(EOS_NotificationId notificationId)
notificationId - The Notification ID representing the registered callbackpublic EOS_EResult setSetting(EOS_RTC_SetSettingOptions options)
The available settings are documented as part of EOS_RTC_SetSettingOptions.
options - structure containing the parameters for the operationEOS_EResult.EOS_Success when the setting is successfully setEOS_EResult.EOS_NotFound when the setting is unknownEOS_EResult.EOS_InvalidParameters when the value is invalid.public EOS_EResult setRoomSetting(EOS_RTC_SetRoomSettingOptions options)
The available settings are documented as part of EOS_RTC_SetRoomSettingOptions.
options - structure containing the parameters for the operationEOS_EResult.EOS_Success when the setting is successfully setEOS_EResult.EOS_NotFound when the setting is unknownEOS_EResult.EOS_InvalidParameters when the value is invalid.public EOS_NotificationId addNotifyRoomStatisticsUpdated(EOS_RTC_AddNotifyRoomStatisticsUpdatedOptions options, com.sun.jna.Pointer clientData, EOS_RTC_OnRoomStatisticsUpdatedCallback statisticsUpdateHandler)
clientData - Arbitrary data that is passed back in the StatisticsUpdateHandlerstatisticsUpdateHandler - The callback to be fired when a statistics updated.EOS_NotificationId.EOS_INVALID_NOTIFICATIONID,
removeNotifyRoomStatisticsUpdated(EOS_NotificationId)public void removeNotifyRoomStatisticsUpdated(EOS_NotificationId notificationId)
notificationId - The Notification ID representing the registered callback