Class EOS_Lobby_Interface
- All Implemented Interfaces:
com.sun.jna.NativeMapped
- Since:
- 8/16/2023
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMax length of an invite ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNotifyJoinLobbyAccepted(EOS_Lobby_AddNotifyJoinLobbyAcceptedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnJoinLobbyAcceptedCallback notificationFn) Register to receive notifications about lobby "JOIN" performed by local user (when no invite) via the overlay.
Must callremoveNotifyJoinLobbyAccepted(EOS_NotificationId)to remove the notificationaddNotifyLobbyInviteAccepted(EOS_Lobby_AddNotifyLobbyInviteAcceptedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLobbyInviteAcceptedCallback notificationFn) Register to receive notifications about lobby invites accepted by local user via the overlay.
Must callremoveNotifyLobbyInviteAccepted(EOS_NotificationId)to remove the notificationaddNotifyLobbyInviteReceived(EOS_Lobby_AddNotifyLobbyInviteReceivedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLobbyInviteReceivedCallback notificationFn) Register to receive notifications about lobby invites sent to local users.
Must callremoveNotifyLobbyInviteReceived(EOS_NotificationId)to remove the notificationaddNotifyLobbyInviteRejected(EOS_Lobby_AddNotifyLobbyInviteRejectedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLobbyInviteRejectedCallback notificationFn) Register to receive notifications about lobby invites rejected by local user via the overlay.
Must callremoveNotifyLobbyInviteRejected(EOS_NotificationId)to remove the notificationaddNotifyLobbyMemberUpdateReceived(EOS_Lobby_AddNotifyLobbyMemberUpdateReceivedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLobbyMemberUpdateReceivedCallback notificationFn) Register to receive notifications when a lobby member updates the attributes associated with themselves inside the lobby.
Must callremoveNotifyLobbyMemberUpdateReceived(host.anzo.eossdk.eos.sdk.common.EOS_NotificationId)to remove the notificationaddNotifyLobbyUpdateReceived(EOS_Lobby_AddNotifyLobbyUpdateReceivedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLobbyUpdateReceivedCallback notificationFn) Register to receive notifications when a lobby owner updates the attributes associated with the lobby.
Must callremoveNotifyLobbyUpdateReceived(host.anzo.eossdk.eos.sdk.common.EOS_NotificationId)to remove the notificationaddNotifyRTCRoomConnectionChanged(EOS_Lobby_AddNotifyRTCRoomConnectionChangedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnRTCRoomConnectionChangedCallback notificationFn) Register to receive notifications of when the RTC Room for a particular lobby has a connection status change.addNotifySendLobbyNativeInviteRequested(EOS_Lobby_AddNotifySendLobbyNativeInviteRequestedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnSendLobbyNativeInviteRequestedCallback notificationFn) Register to receive notifications about a lobby "INVITE" performed by a local user via the overlay.copyLobbyDetailsHandle(EOS_Lobby_CopyLobbyDetailsHandleOptions options, com.sun.jna.ptr.PointerByReference outLobbyDetailsHandle) Create a handle to an existing lobby.copyLobbyDetailsHandleByInviteId(EOS_Lobby_CopyLobbyDetailsHandleByInviteIdOptions options, com.sun.jna.ptr.PointerByReference outLobbyDetailsHandle) EOS_Lobby_CopyLobbyDetailsHandleByInviteId is used to immediately retrieve a handle to the lobby information from after notification of an invite If the call returns an EOS_Success result, the out parameter, OutLobbyDetailsHandle, must be passed to EOS_LobbyDetails_Release to release the memory associated with it.copyLobbyDetailsHandleByUiEventId(EOS_Lobby_CopyLobbyDetailsHandleByUiEventIdOptions options, com.sun.jna.ptr.PointerByReference outLobbyDetailsHandle) EOS_Lobby_CopyLobbyDetailsHandleByUiEventId is used to immediately retrieve a handle to the lobby information from after notification of an join game If the call returns an EOS_Success result, the out parameter, OutLobbyDetailsHandle, must be passed to EOS_LobbyDetails_Release to release the memory associated with it.voidcreateLobby(EOS_Lobby_CreateLobbyOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnCreateLobbyCallback completionDelegate) Creates a lobby and adds the user to the lobby membership.createLobbySearch(EOS_Lobby_CreateLobbySearchOptions options, com.sun.jna.ptr.PointerByReference outLobbySearchHandle) Create a lobby search handle.voiddestroyLobby(EOS_Lobby_DestroyLobbyOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnDestroyLobbyCallback completionDelegate) Destroy a lobby given a lobby IDEOS_Lobby_AddNotifyLobbyMemberStatusReceived(EOS_Lobby_AddNotifyLobbyMemberStatusReceivedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLobbyMemberStatusReceivedCallback notificationFn) Register to receive notifications about the changing status of lobby members.
Must callremoveNotifyLobbyMemberStatusReceived(host.anzo.eossdk.eos.sdk.common.EOS_NotificationId)to remove the notificationintGet the number of known invites for a given userRetrieve an invite ID from a list of active invites for a given usergetRTCRoomName(EOS_Lobby_GetRTCRoomNameOptions options, ByteBuffer outBuffer, IntBuffer inOutBufferLength) Get the name of the RTC room associated with a specific lobby a local user belongs to.voidhardMuteMember(EOS_Lobby_HardMuteMemberOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnHardMuteMemberCallback completionDelegate) Hard mute an existing member in the lobby, can't speak but can hear other members of the lobbyisRTCRoomConnected(EOS_Lobby_IsRTCRoomConnectedOptions options, IntBuffer bOutIsConnected) Get the current connection status of the RTC Room for a lobby.voidjoinLobby(EOS_Lobby_JoinLobbyOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnJoinLobbyCallback completionDelegate) Join a lobby, creating a local instance under a given lobby ID.voidjoinLobbyById(EOS_Lobby_JoinLobbyByIdOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnJoinLobbyByIdCallback completionDelegate) This is a special case of EOS_Lobby_JoinLobby.voidkickMember(EOS_Lobby_KickMemberOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnKickMemberCallback completionDelegate) Kick an existing member from the lobbyvoidleaveLobby(EOS_Lobby_LeaveLobbyOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLeaveLobbyCallback completionDelegate) Leave a lobby given a lobby IDvoidpromoteMember(EOS_Lobby_PromoteMemberOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnPromoteMemberCallback completionDelegate) Promote an existing member of the lobby to owner, allowing them to make lobby data modificationsvoidqueryInvites(EOS_Lobby_QueryInvitesOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnQueryInvitesCallback completionDelegate) Retrieve all existing invites for a single uservoidrejectInvite(EOS_Lobby_RejectInviteOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnRejectInviteCallback completionDelegate) Reject an invite from another user.voidUnregister from receiving notifications when a user accepts a lobby invitation via the overlay.voidUnregister from receiving notifications when a user accepts a lobby invitation via the overlay.voidUnregister from receiving notifications when a user receives a lobby invitation.voidUnregister from receiving notifications when a user rejects a lobby invitation via the overlay.voidUnregister from receiving notifications when lobby members status change.voidUnregister from receiving notifications when lobby members change their data.voidUnregister from receiving notifications when a lobby changes its data.voidUnregister from receiving notifications when an RTC Room's connection status changes.voidUnregister from receiving notifications when a user requests a send invite via the overlay.voidsendInvite(EOS_Lobby_SendInviteOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnSendInviteCallback completionDelegate) Send an invite to another user.voidupdateLobby(EOS_Lobby_UpdateLobbyOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnUpdateLobbyCallback completionDelegate) Update a lobby given a lobby modification handle created by EOS_Lobby_UpdateLobbyModificationupdateLobbyModification(EOS_Lobby_UpdateLobbyModificationOptions options, com.sun.jna.ptr.PointerByReference outLobbyModificationHandle) Creates a lobby modification handle (EOS_HLobbyModification).Methods inherited from class com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
-
Field Details
-
EOS_LOBBY_INVITEID_MAX_LENGTH
public static final int EOS_LOBBY_INVITEID_MAX_LENGTHMax length of an invite ID- See Also:
-
-
Constructor Details
-
EOS_Lobby_Interface
public EOS_Lobby_Interface(com.sun.jna.Pointer address) -
EOS_Lobby_Interface
public EOS_Lobby_Interface()
-
-
Method Details
-
createLobby
public void createLobby(EOS_Lobby_CreateLobbyOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnCreateLobbyCallback completionDelegate) Creates a lobby and adds the user to the lobby membership. There is no data associated with the lobby at the start and can be added vis EOS_Lobby_UpdateLobbyModificationIf the lobby is successfully created with an RTC Room enabled, the lobby system will automatically join and maintain the connection to the RTC room as long as the local user remains in the lobby. Applications can use the EOS_Lobby_GetRTCRoomName to get the name of the RTC Room associated with a lobby, which may be used with many of the EOS_RTC_* suite of functions. This can be useful to: register for notifications for talking status; to mute or unmute the local user's audio output; to block or unblock room participants; to set local audio device settings; and more.
- Parameters:
options- Required fields for the creation of a lobby such as a user count and its starting advertised stateclientData- Arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate- A callback that is fired when the create operation completes, either successfully or in error
-
destroyLobby
public void destroyLobby(EOS_Lobby_DestroyLobbyOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnDestroyLobbyCallback completionDelegate) Destroy a lobby given a lobby ID- Parameters:
options- Structure containing information about the lobby to be destroyedclientData- Arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate- A callback that is fired when the destroy operation completes, either successfully or in error
-
joinLobby
public void joinLobby(EOS_Lobby_JoinLobbyOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnJoinLobbyCallback completionDelegate) Join a lobby, creating a local instance under a given lobby ID. Backend will validate various conditions to make sure it is possible to join the lobby.If the lobby is successfully join has an RTC Room enabled, the lobby system will automatically join and maintain the connection to the RTC room as long as the local user remains in the lobby. Applications can use the EOS_Lobby_GetRTCRoomName to get the name of the RTC Room associated with a lobby, which may be used with many of the EOS_RTC_* suite of functions. This can be useful to: register for notifications for talking status; to mute or unmute the local user's audio output; to block or unblock room participants; to set local audio device settings; and more.
- Parameters:
options- Structure containing information about the lobby to be joinedclientData- Arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate- A callback that is fired when the join operation completes, either successfully or in error
-
joinLobbyById
public void joinLobbyById(EOS_Lobby_JoinLobbyByIdOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnJoinLobbyByIdCallback completionDelegate) This is a special case of EOS_Lobby_JoinLobby. It should only be used if the lobby has had Join-by-ID enabled. Additionally, Join-by-ID should only be enabled to support native invites on an integrated platform.- Parameters:
options- Structure containing information about the lobby to be joinedclientData- Arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate- A callback that is fired when the join operation completes, either successfully or in error- See Also:
-
leaveLobby
public void leaveLobby(EOS_Lobby_LeaveLobbyOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLeaveLobbyCallback completionDelegate) Leave a lobby given a lobby IDIf the lobby you are leaving had an RTC Room enabled, leaving the lobby will also automatically leave the RTC room.
- Parameters:
options- Structure containing information about the lobby to be leftclientData- Arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate- A callback that is fired when the leave operation completes, either successfully or in error
-
updateLobbyModification
public EOS_EResult updateLobbyModification(EOS_Lobby_UpdateLobbyModificationOptions options, com.sun.jna.ptr.PointerByReference outLobbyModificationHandle) Creates a lobby modification handle (EOS_HLobbyModification). The lobby modification handle is used to modify an existing lobby and can be applied with EOS_Lobby_UpdateLobby. The EOSLobbyModification must be released by calling EOS_LobbyModification_Release once it is no longer needed.- Parameters:
options- Required fields such as lobby IDoutLobbyModificationHandle- Pointer to a Lobby Modification Handle only set if successful- Returns:
EOS_EResult.EOS_Successif we successfully created the Lobby Modification Handle pointed at in OutLobbyModificationHandle, or an error result if the input data was invalidEOS_EResult.EOS_InvalidParametersif any of the options are incorrect- See Also:
-
updateLobby
public void updateLobby(EOS_Lobby_UpdateLobbyOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnUpdateLobbyCallback completionDelegate) Update a lobby given a lobby modification handle created by EOS_Lobby_UpdateLobbyModification- Parameters:
options- Structure containing information about the lobby to be updatedclientData- Arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate- A callback that is fired when the update operation completes, either successfully or in error
-
promoteMember
public void promoteMember(EOS_Lobby_PromoteMemberOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnPromoteMemberCallback completionDelegate) Promote an existing member of the lobby to owner, allowing them to make lobby data modifications- Parameters:
options- Structure containing information about the lobby and member to be promotedclientData- Arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate- A callback that is fired when the promotion operation completes, either successfully or in error
-
kickMember
public void kickMember(EOS_Lobby_KickMemberOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnKickMemberCallback completionDelegate) Kick an existing member from the lobby- Parameters:
options- Structure containing information about the lobby and member to be kickedclientData- Arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate- A callback that is fired when the kick operation completes, either successfully or in error
-
hardMuteMember
public void hardMuteMember(EOS_Lobby_HardMuteMemberOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnHardMuteMemberCallback completionDelegate) Hard mute an existing member in the lobby, can't speak but can hear other members of the lobby- Parameters:
options- Structure containing information about the lobby and member to be hard mutedclientData- Arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate- A callback that is fired when the hard mute operation completes, either successfully or in error
-
addNotifyLobbyUpdateReceived
public EOS_NotificationId addNotifyLobbyUpdateReceived(EOS_Lobby_AddNotifyLobbyUpdateReceivedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLobbyUpdateReceivedCallback notificationFn) Register to receive notifications when a lobby owner updates the attributes associated with the lobby.
Must callremoveNotifyLobbyUpdateReceived(host.anzo.eossdk.eos.sdk.common.EOS_NotificationId)to remove the notification- Parameters:
options- Structure containing information about the request.clientData- Arbitrary data that is passed back to you in the CompletionDelegate.notificationFn- A callback that is fired when a notification is received.- Returns:
- handle representing the registered callback
-
removeNotifyLobbyUpdateReceived
Unregister from receiving notifications when a lobby changes its data.- Parameters:
inId- Handle representing the registered callback
-
addNotifyLobbyMemberUpdateReceived
public EOS_NotificationId addNotifyLobbyMemberUpdateReceived(EOS_Lobby_AddNotifyLobbyMemberUpdateReceivedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLobbyMemberUpdateReceivedCallback notificationFn) Register to receive notifications when a lobby member updates the attributes associated with themselves inside the lobby.
Must callremoveNotifyLobbyMemberUpdateReceived(host.anzo.eossdk.eos.sdk.common.EOS_NotificationId)to remove the notification- Parameters:
options- Structure containing information about the request.clientData- Arbitrary data that is passed back to you in the CompletionDelegate.notificationFn- A callback that is fired when a notification is received.- Returns:
- handle representing the registered callback
-
removeNotifyLobbyMemberUpdateReceived
Unregister from receiving notifications when lobby members change their data.- Parameters:
inId- Handle representing the registered callback
-
EOS_Lobby_AddNotifyLobbyMemberStatusReceived
public EOS_NotificationId EOS_Lobby_AddNotifyLobbyMemberStatusReceived(EOS_Lobby_AddNotifyLobbyMemberStatusReceivedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLobbyMemberStatusReceivedCallback notificationFn) Register to receive notifications about the changing status of lobby members.
Must callremoveNotifyLobbyMemberStatusReceived(host.anzo.eossdk.eos.sdk.common.EOS_NotificationId)to remove the notification- Parameters:
options- Structure containing information about the request.clientData- Arbitrary data that is passed back to you in the CompletionDelegate.notificationFn- A callback that is fired when a notification is received.- Returns:
- handle representing the registered callback
-
removeNotifyLobbyMemberStatusReceived
Unregister from receiving notifications when lobby members status change.- Parameters:
inId- Handle representing the registered callback
-
sendInvite
public void sendInvite(EOS_Lobby_SendInviteOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnSendInviteCallback completionDelegate) Send an invite to another user. User must be a member of the lobby or else the call will fail- Parameters:
options- Structure containing information about the lobby and user to inviteclientData- Arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate- A callback that is fired when the send invite operation completes, either successfully or in error
-
rejectInvite
public void rejectInvite(EOS_Lobby_RejectInviteOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnRejectInviteCallback completionDelegate) Reject an invite from another user.- Parameters:
options- Structure containing information about the invite to rejectclientData- Arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate- A callback that is fired when the reject invite operation completes, either successfully or in error
-
queryInvites
public void queryInvites(EOS_Lobby_QueryInvitesOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnQueryInvitesCallback completionDelegate) Retrieve all existing invites for a single user- Parameters:
options- Structure containing information about the invites to queryclientData- Arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate- A callback that is fired when the query invites operation completes, either successfully or in error
-
getInviteCount
Get the number of known invites for a given user- Parameters:
options- the Options associated with retrieving the current invite count- Returns:
- number of known invites for a given user or 0 if there is an error
-
getInviteIdByIndex
Retrieve an invite ID from a list of active invites for a given user- Parameters:
options- Structure containing the input parameters- Returns:
- invite ID stringified version
- Throws:
EOSInvalidParametersException- if any of the options are incorrectEOSNotFoundException- if the invite doesn't existEOSException- See Also:
-
createLobbySearch
public EOS_EResult createLobbySearch(EOS_Lobby_CreateLobbySearchOptions options, com.sun.jna.ptr.PointerByReference outLobbySearchHandle) Create a lobby search handle. This handle may be modified to include various search parameters. Searching is possible in three methods, all mutually exclusive:
- set the lobby ID to find a specific lobby
- set the target user ID to find a specific user
- set lobby parameters to find an array of lobbies that match the search criteria (not available yet)
- Parameters:
options- Structure containing required parameters such as the maximum number of search resultsoutLobbySearchHandle- The new search handle or null if there was an error creating the search handle- Returns:
EOS_EResult.EOS_Successif the search creation completes successfullyEOS_EResult.EOS_InvalidParametersif any of the options are incorrect
-
addNotifyLobbyInviteReceived
public EOS_NotificationId addNotifyLobbyInviteReceived(EOS_Lobby_AddNotifyLobbyInviteReceivedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLobbyInviteReceivedCallback notificationFn) Register to receive notifications about lobby invites sent to local users.
Must callremoveNotifyLobbyInviteReceived(EOS_NotificationId)to remove the notification- Parameters:
options- Structure containing information about the request.clientData- Arbitrary data that is passed back to you in the CompletionDelegate.notificationFn- A callback that is fired when a notification is received.- Returns:
- handle representing the registered callback
-
removeNotifyLobbyInviteReceived
Unregister from receiving notifications when a user receives a lobby invitation.- Parameters:
inId- Handle representing the registered callback
-
addNotifyLobbyInviteAccepted
public EOS_NotificationId addNotifyLobbyInviteAccepted(EOS_Lobby_AddNotifyLobbyInviteAcceptedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLobbyInviteAcceptedCallback notificationFn) Register to receive notifications about lobby invites accepted by local user via the overlay.
Must callremoveNotifyLobbyInviteAccepted(EOS_NotificationId)to remove the notification- Parameters:
options- Structure containing information about the request.clientData- Arbitrary data that is passed back to you in the CompletionDelegate.notificationFn- A callback that is fired when a notification is received.- Returns:
- handle representing the registered callback
-
removeNotifyLobbyInviteAccepted
Unregister from receiving notifications when a user accepts a lobby invitation via the overlay.- Parameters:
inId- Handle representing the registered callback
-
addNotifyLobbyInviteRejected
public EOS_NotificationId addNotifyLobbyInviteRejected(EOS_Lobby_AddNotifyLobbyInviteRejectedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnLobbyInviteRejectedCallback notificationFn) Register to receive notifications about lobby invites rejected by local user via the overlay.
Must callremoveNotifyLobbyInviteRejected(EOS_NotificationId)to remove the notification- Parameters:
options- Structure containing information about the request.clientData- Arbitrary data that is passed back to you in the CompletionDelegate.notificationFn- A callback that is fired when a notification is received.- Returns:
- handle representing the registered callback
-
removeNotifyLobbyInviteRejected
Unregister from receiving notifications when a user rejects a lobby invitation via the overlay.- Parameters:
inId- Handle representing the registered callback
-
addNotifyJoinLobbyAccepted
public EOS_NotificationId addNotifyJoinLobbyAccepted(EOS_Lobby_AddNotifyJoinLobbyAcceptedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnJoinLobbyAcceptedCallback notificationFn) Register to receive notifications about lobby "JOIN" performed by local user (when no invite) via the overlay.
Must callremoveNotifyJoinLobbyAccepted(EOS_NotificationId)to remove the notification- Parameters:
options- Structure containing information about the request.clientData- Arbitrary data that is passed back to you in the CompletionDelegate.notificationFn- A callback that is fired when a notification is received.- Returns:
- handle representing the registered callback
-
removeNotifyJoinLobbyAccepted
Unregister from receiving notifications when a user accepts a lobby invitation via the overlay.- Parameters:
inId- Handle representing the registered callback
-
addNotifySendLobbyNativeInviteRequested
public EOS_NotificationId addNotifySendLobbyNativeInviteRequested(EOS_Lobby_AddNotifySendLobbyNativeInviteRequestedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnSendLobbyNativeInviteRequestedCallback notificationFn) Register to receive notifications about a lobby "INVITE" performed by a local user via the overlay. This is only needed when a configured integrated platform has EOS_IPMF_DisableSDKManagedSessions set. The EOS SDK will then use the state of EOS_IPMF_PreferEOSIdentity and EOS_IPMF_PreferIntegratedIdentity to determine when the NotificationFn is called.
Must callremoveNotifySendLobbyNativeInviteRequested(EOS_NotificationId)to remove the notification.- Parameters:
options- Structure containing information about the request.clientData- Arbitrary data that is passed back to you in the CompletionDelegate.notificationFn- A callback that is fired when a notification is received.- Returns:
- handle representing the registered callback
- See Also:
-
removeNotifySendLobbyNativeInviteRequested
Unregister from receiving notifications when a user requests a send invite via the overlay.- Parameters:
inId- Handle representing the registered callback
-
copyLobbyDetailsHandleByInviteId
public EOS_EResult copyLobbyDetailsHandleByInviteId(EOS_Lobby_CopyLobbyDetailsHandleByInviteIdOptions options, com.sun.jna.ptr.PointerByReference outLobbyDetailsHandle) EOS_Lobby_CopyLobbyDetailsHandleByInviteId is used to immediately retrieve a handle to the lobby information from after notification of an invite If the call returns an EOS_Success result, the out parameter, OutLobbyDetailsHandle, must be passed to EOS_LobbyDetails_Release to release the memory associated with it.- Parameters:
options- Structure containing the input parametersoutLobbyDetailsHandle- out parameter used to receive the lobby handle- Returns:
EOS_EResult.EOS_Successif the information is available and passed out in OutLobbyDetailsHandle
EOS_EResult.EOS_InvalidParametersif you pass an invalid invite ID or a null pointer for the out parameter
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
EOS_EResult.EOS_NotFoundIf the invite ID cannot be found- See Also:
-
copyLobbyDetailsHandleByUiEventId
public EOS_EResult copyLobbyDetailsHandleByUiEventId(EOS_Lobby_CopyLobbyDetailsHandleByUiEventIdOptions options, com.sun.jna.ptr.PointerByReference outLobbyDetailsHandle) EOS_Lobby_CopyLobbyDetailsHandleByUiEventId is used to immediately retrieve a handle to the lobby information from after notification of an join game If the call returns an EOS_Success result, the out parameter, OutLobbyDetailsHandle, must be passed to EOS_LobbyDetails_Release to release the memory associated with it.- Parameters:
options- Structure containing the input parametersoutLobbyDetailsHandle- out parameter used to receive the lobby handle- Returns:
EOS_EResult.EOS_Successif the information is available and passed out in OutLobbyDetailsHandle
EOS_EResult.EOS_InvalidParametersif you pass an invalid ui event ID
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
EOS_EResult.EOS_NotFoundIf the invite ID cannot be found- See Also:
-
copyLobbyDetailsHandle
public EOS_EResult copyLobbyDetailsHandle(EOS_Lobby_CopyLobbyDetailsHandleOptions options, com.sun.jna.ptr.PointerByReference outLobbyDetailsHandle) Create a handle to an existing lobby. If the call returns an EOS_Success result, the out parameter, OutLobbyDetailsHandle, must be passed to EOS_LobbyDetails_Release to release the memory associated with it.- Parameters:
options- Structure containing information about the lobby to retrieveoutLobbyDetailsHandle- The new active lobby handle or null if there was an error- Returns:
EOS_EResult.EOS_Successif the lobby handle was created successfully
EOS_EResult.EOS_InvalidParametersif any of the options are incorrect
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
EOS_EResult.EOS_NotFoundif the lobby doesn't exist
-
getRTCRoomName
public EOS_EResult getRTCRoomName(EOS_Lobby_GetRTCRoomNameOptions options, ByteBuffer outBuffer, IntBuffer inOutBufferLength) Get the name of the RTC room associated with a specific lobby a local user belongs to.This value can be used whenever you need a RoomName value in the RTC_* suite of functions. RTC Room Names must not be used with EOS_RTC_JoinRoom, EOS_RTC_LeaveRoom, or EOS_RTC_AddNotifyDisconnected. Doing so will return EOS_AccessDenied or EOS_INVALID_NOTIFICATIONID if used with those functions.
This function will only succeed when called on a lobby the local user is currently a member of.
- Parameters:
options- Structure containing information about the RTC room name to retrieveoutBuffer- The buffer to store the null-terminated room name string withininOutBufferLength- In: The maximum amount of writable chars in OutBuffer, Out: The minimum amount of chars needed in OutBuffer to store the RTC room name (including the null-terminator)- Returns:
EOS_EResult.EOS_Successif a room exists for the specified lobby, there was enough space in OutBuffer, and the name was written successfully
EOS_EResult.EOS_NotFoundif the lobby does not exist
EOS_EResult.EOS_Disabledif the lobby exists, but did not have the RTC Room feature enabled when created
EOS_EResult.EOS_InvalidParametersif you pass a null pointer on invalid length for any of the parameters
EOS_EResult.EOS_LimitExceededThe OutBuffer is not large enough to receive the room name. InOutBufferLength contains the required minimum length to perform the operation successfully.
-
isRTCRoomConnected
public EOS_EResult isRTCRoomConnected(EOS_Lobby_IsRTCRoomConnectedOptions options, IntBuffer bOutIsConnected) Get the current connection status of the RTC Room for a lobby.The RTC Room connection status is independent of the lobby connection status, however the lobby system will attempt to keep them consistent, automatically connecting to the RTC room after joining a lobby which has an associated RTC room and disconnecting from the RTC room when a lobby is left or disconnected.
This function will only succeed when called on a lobby the local user is currently a member of.
- Parameters:
options- Structure containing information about the lobby to query the RTC Room connection status forbOutIsConnected- If the result is EOS_Success, this will be set to EOS_TRUE if we are connected, or EOS_FALSE if we are not yet connected.- Returns:
EOS_EResult.EOS_Successif we are connected to the specified lobby, the input options and parameters were valid and we were able to write to bOutIsConnected successfully.
EOS_EResult.EOS_NotFoundif the lobby doesn't exist
EOS_EResult.EOS_Disabledif the lobby exists, but did not have the RTC Room feature enabled when created
EOS_EResult.EOS_InvalidParametersif bOutIsConnected is NULL, or any other parameters are NULL or invalid- See Also:
-
addNotifyRTCRoomConnectionChanged
public EOS_NotificationId addNotifyRTCRoomConnectionChanged(EOS_Lobby_AddNotifyRTCRoomConnectionChangedOptions options, com.sun.jna.Pointer clientData, EOS_Lobby_OnRTCRoomConnectionChangedCallback notificationFn) Register to receive notifications of when the RTC Room for a particular lobby has a connection status change.The RTC Room connection status is independent of the lobby connection status, however the lobby system will attempt to keep them consistent, automatically connecting to the RTC room after joining a lobby which has an associated RTC room and disconnecting from the RTC room when a lobby is left or disconnected.
This notification is entirely informational and requires no action in response by the application. If the connected status is offline (IsConnected is EOS_FALSE), the connection will automatically attempt to reconnect. The purpose of this notification is to allow applications to show the current connection status of the RTC room when the connection is not established.
Unlike EOS_RTC_AddNotifyDisconnected, EOS_RTC_LeaveRoom should not be called when the RTC room is disconnected.
This function will only succeed when called on a lobby the local user is currently a member of.
- Parameters:
options- Structure containing information about the lobby to receive updates aboutclientData- Arbitrary data that is passed back to you in the CompletionDelegate.notificationFn- The function to call if the RTC Room's connection status changes- Returns:
- A valid notification ID if the NotificationFn was successfully registered, or EOS_INVALID_NOTIFICATIONID if the input was invalid, the lobby did not exist, or the lobby did not have an RTC room.
- See Also:
-
removeNotifyRTCRoomConnectionChanged
Unregister from receiving notifications when an RTC Room's connection status changes.This should be called when the local user is leaving a lobby.
- Parameters:
inId- Handle representing the registered callback- See Also:
-