public class EOS_Sessions_Interface
extends com.sun.jna.PointerType
EOS_Platform_Interface.getSessionsInterface()| Modifier and Type | Field and Description |
|---|---|
static int |
EOS_SESSIONS_INVITEID_MAX_LENGTH
Max length of an invite ID
|
| Constructor and Description |
|---|
EOS_Sessions_Interface() |
EOS_Sessions_Interface(com.sun.jna.Pointer address) |
| Modifier and Type | Method and Description |
|---|---|
EOS_NotificationId |
addNotifyJoinSessionAccepted(EOS_Sessions_AddNotifyJoinSessionAcceptedOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnJoinSessionAcceptedCallback notificationFn)
Register to receive notifications when a user accepts a session join game via the social overlay.
|
EOS_NotificationId |
addNotifyLeaveSessionRequested(EOS_Sessions_AddNotifyLeaveSessionRequestedOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnLeaveSessionRequestedCallback notificationFn)
Register to receive notifications about leave session requests performed by local user via the overlay.
|
EOS_NotificationId |
addNotifySendSessionNativeInviteRequested(EOS_Sessions_AddNotifySendSessionNativeInviteRequestedOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnSendSessionNativeInviteRequestedCallback notificationFn)
Register to receive notifications about a session "INVITE" performed by a local user via the overlay.
|
EOS_NotificationId |
addNotifySessionInviteAccepted(EOS_Sessions_AddNotifySessionInviteAcceptedOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnSessionInviteAcceptedCallback notificationFn)
Register to receive notifications when a user accepts a session invite via the social overlay.
|
EOS_NotificationId |
addNotifySessionInviteReceived(EOS_Sessions_AddNotifySessionInviteReceivedOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnSessionInviteReceivedCallback notificationFn)
Register to receive session invites.
|
EOS_NotificationId |
addNotifySessionInviteRejected(EOS_Sessions_AddNotifySessionInviteRejectedOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnSessionInviteRejectedCallback notificationFn)
Register to receive notifications when a user rejects a session invite.
|
EOS_EResult |
copyActiveSessionHandle(EOS_Sessions_CopyActiveSessionHandleOptions options,
EOS_ActiveSession outSessionHandle)
Create a handle to an existing active session.
|
EOS_EResult |
copySessionHandleByInviteId(EOS_Sessions_CopySessionHandleByInviteIdOptions options,
EOS_SessionDetails outSessionHandle)
EOS_Sessions_CopySessionHandleByInviteId is used to immediately retrieve a handle to the session information from after notification of an invite
If the call returns an EOS_Success result, the out parameter, OutSessionHandle, must be passed to EOS_SessionDetails_Release to release the memory associated with it.
|
EOS_EResult |
copySessionHandleByUiEventId(EOS_Sessions_CopySessionHandleByUiEventIdOptions options,
EOS_SessionDetails outSessionHandle)
EOS_Sessions_CopySessionHandleByUiEventId is used to immediately retrieve a handle to the session information from after notification of a join game event.
|
EOS_EResult |
copySessionHandleForPresence(EOS_Sessions_CopySessionHandleForPresenceOptions options,
EOS_SessionDetails outSessionHandle)
EOS_Sessions_CopySessionHandleForPresence is used to immediately retrieve a handle to the session information which was marked with bPresenceEnabled on create or join.
|
EOS_EResult |
createSessionModification(EOS_Sessions_CreateSessionModificationOptions options,
EOS_SessionModification outSessionModificationHandle)
Creates a session modification handle (EOS_SessionModification).
|
EOS_EResult |
createSessionSearch(EOS_Sessions_CreateSessionSearchOptions options,
EOS_SessionSearch outSessionSearchHandle)
Create a session search handle.
|
void |
destroySession(EOS_Sessions_DestroySessionOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnDestroySessionCallback completionDelegate)
Destroy a session given a session name
|
EOS_EResult |
dumpSessionState(EOS_Sessions_DumpSessionStateOptions options)
Dump the contents of active sessions that exist locally to the log output, purely for debug purposes
|
void |
endSession(EOS_Sessions_EndSessionOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnEndSessionCallback completionDelegate)
Mark a session as ended, making it available to find if "join in progress" was disabled.
|
int |
getInviteCount(EOS_Sessions_GetInviteCountOptions options)
Get the number of known invites for a given user
|
java.lang.String |
getInviteIdByIndex(EOS_Sessions_GetInviteIdByIndexOptions options)
Retrieve an invite ID from a list of active invites for a given user
|
EOS_EResult |
isUserInSession(EOS_Sessions_IsUserInSessionOptions options)
EOS_Sessions_IsUserInSession returns whether or not a given user can be found in a specified session
|
void |
joinSession(EOS_Sessions_JoinSessionOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnJoinSessionCallback completionDelegate)
Join a session, creating a local session under a given session name.
|
void |
queryInvites(EOS_Sessions_QueryInvitesOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnQueryInvitesCallback completionDelegate)
Retrieve all existing invites for a single user
|
void |
registerPlayers(EOS_Sessions_RegisterPlayersOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnRegisterPlayersCallback completionDelegate)
Register a group of players with the session, allowing them to invite others or otherwise indicate they are part of the session for determining a full session
|
void |
rejectInvite(EOS_Sessions_RejectInviteOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnRejectInviteCallback completionDelegate)
Reject an invite from another player.
|
void |
removeNotifyJoinSessionAccepted(EOS_NotificationId inId)
Unregister from receiving notifications when a user accepts a session join game via the social overlay.
|
void |
removeNotifyLeaveSessionRequested(EOS_NotificationId inId)
Unregister from receiving notifications when a user performs a leave lobby action via the overlay.
|
void |
removeNotifySendSessionNativeInviteRequested(EOS_NotificationId inId)
Unregister from receiving notifications when a user requests a send invite via the overlay.
|
void |
removeNotifySessionInviteAccepted(EOS_NotificationId inId)
Unregister from receiving notifications when a user accepts a session invite via the social overlay.
|
void |
removeNotifySessionInviteReceived(EOS_NotificationId inId)
Unregister from receiving session invites.
|
void |
removeNotifySessionInviteRejected(EOS_NotificationId inId)
Unregister from receiving notifications when a user rejects a session invite via the social overlay.
|
void |
sendInvite(EOS_Sessions_SendInviteOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnSendInviteCallback completionDelegate)
Send an invite to another player.
|
void |
startSession(EOS_Sessions_StartSessionOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnStartSessionCallback completionDelegate)
Mark a session as started, making it unable to find if session properties indicate "join in progress" is not available
|
void |
unregisterPlayers(EOS_Sessions_UnregisterPlayersOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnUnregisterPlayersCallback completionDelegate)
Unregister a group of players with the session, freeing up space for others to join
|
void |
updateSession(EOS_Sessions_UpdateSessionOptions options,
com.sun.jna.Pointer clientData,
EOS_Sessions_OnUpdateSessionCallback completionDelegate)
Update a session given a session modification handle created by EOS_Sessions_CreateSessionModification or EOS_Sessions_UpdateSessionModification
|
EOS_EResult |
updateSessionModification(EOS_Sessions_UpdateSessionModificationOptions options,
EOS_SessionModification outSessionModificationHandle)
Creates a session modification handle (EOS_SessionModification).
|
public static final int EOS_SESSIONS_INVITEID_MAX_LENGTH
public EOS_Sessions_Interface(com.sun.jna.Pointer address)
public EOS_Sessions_Interface()
public EOS_EResult createSessionModification(EOS_Sessions_CreateSessionModificationOptions options, EOS_SessionModification outSessionModificationHandle)
options - Required fields for the creation of a session such as a name, bucketid, and max playersoutSessionModificationHandle - Pointer to a Session Modification Handle only set if successfulEOS_EResult.EOS_Success if we successfully created the Session Modification Handle pointed at in outSessionModificationHandle, or an error result if the input data was invalidEOS_SessionModification.release(),
updateSession(EOS_Sessions_UpdateSessionOptions, Pointer, EOS_Sessions_OnUpdateSessionCallback),
EOS_SessionModificationpublic EOS_EResult updateSessionModification(EOS_Sessions_UpdateSessionModificationOptions options, EOS_SessionModification outSessionModificationHandle)
options - Required fields such as session nameoutSessionModificationHandle - Pointer to a Session Modification Handle only set if successfulEOS_EResult.EOS_Success if we successfully created the Session Modification Handle pointed at in outSessionModificationHandle, or an error result if the input data was invalidEOS_SessionModification.release(),
updateSession(EOS_Sessions_UpdateSessionOptions, Pointer, EOS_Sessions_OnUpdateSessionCallback),
EOS_SessionModificationpublic void updateSession(EOS_Sessions_UpdateSessionOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnUpdateSessionCallback completionDelegate)
options - Structure containing information about the session 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 errorpublic void destroySession(EOS_Sessions_DestroySessionOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnDestroySessionCallback completionDelegate)
options - Structure containing information about the session 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 errorpublic void joinSession(EOS_Sessions_JoinSessionOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnJoinSessionCallback completionDelegate)
options - Structure containing information about the session 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 errorpublic void startSession(EOS_Sessions_StartSessionOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnStartSessionCallback completionDelegate)
options - Structure containing information about the session to be startedclientData - Arbitrary data that is passed back to you in the completionDelegatecompletionDelegate - A callback that is fired when the start operation completes, either successfully or in errorpublic void endSession(EOS_Sessions_EndSessionOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnEndSessionCallback completionDelegate)
options - Structure containing information about the session to be endedclientData - Arbitrary data that is passed back to you in the completionDelegatecompletionDelegate - A callback that is fired when the end operation completes, either successfully or in errorpublic void registerPlayers(EOS_Sessions_RegisterPlayersOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnRegisterPlayersCallback completionDelegate)
options - Structure containing information about the session and players to be registeredclientData - Arbitrary data that is passed back to you in the completionDelegatecompletionDelegate - A callback that is fired when the registration operation completes, either successfully or in errorpublic void unregisterPlayers(EOS_Sessions_UnregisterPlayersOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnUnregisterPlayersCallback completionDelegate)
options - Structure containing information about the session and players to be unregisteredclientData - Arbitrary data that is passed back to you in the completionDelegatecompletionDelegate - A callback that is fired when the unregistration operation completes, either successfully or in errorpublic void sendInvite(EOS_Sessions_SendInviteOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnSendInviteCallback completionDelegate)
options - Structure containing information about the session and player 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 errorpublic void rejectInvite(EOS_Sessions_RejectInviteOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnRejectInviteCallback completionDelegate)
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 errorpublic void queryInvites(EOS_Sessions_QueryInvitesOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnQueryInvitesCallback completionDelegate)
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 errorpublic int getInviteCount(EOS_Sessions_GetInviteCountOptions options)
options - the options associated with retrieving the current invite countpublic java.lang.String getInviteIdByIndex(EOS_Sessions_GetInviteIdByIndexOptions options) throws EOSException
options - Structure containing the input parametersEOSInvalidParametersException - if any of the options are incorrectEOSNotFoundException - if the invite doesn't existEOSExceptiongetInviteCount(EOS_Sessions_GetInviteCountOptions),
copySessionHandleByInviteId(EOS_Sessions_CopySessionHandleByInviteIdOptions, EOS_SessionDetails)public EOS_EResult createSessionSearch(EOS_Sessions_CreateSessionSearchOptions options, EOS_SessionSearch outSessionSearchHandle)
options - Structure containing required parameters such as the maximum number of search resultsoutSessionSearchHandle - The new search handle or null if there was an error creating the search handleEOS_EResult.EOS_Success if the search creation completes successfullyEOS_EResult.EOS_InvalidParameters if any of the options are incorrectpublic EOS_EResult copyActiveSessionHandle(EOS_Sessions_CopyActiveSessionHandleOptions options, EOS_ActiveSession outSessionHandle)
options - Structure containing information about the active session to retrieveoutSessionHandle - The new active session handle or null if there was an errorEOS_EResult.EOS_Success if the session handle was created successfullyEOS_EResult.EOS_InvalidParameters if any of the options are incorrectEOS_EResult.EOS_IncompatibleVersion if the API version passed in is incorrectEOS_EResult.EOS_NotFound if the active session doesn't existpublic EOS_NotificationId addNotifySessionInviteReceived(EOS_Sessions_AddNotifySessionInviteReceivedOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnSessionInviteReceivedCallback notificationFn)
removeNotifySessionInviteReceived(EOS_NotificationId) to remove the notificationoptions - Structure containing information about the session invite notificationclientData - Arbitrary data that is passed back to you in the completionDelegatenotificationFn - A callback that is fired when a session invite for a user has been receivedpublic void removeNotifySessionInviteReceived(EOS_NotificationId inId)
inId - Handle representing the registered callbackpublic EOS_NotificationId addNotifySessionInviteAccepted(EOS_Sessions_AddNotifySessionInviteAcceptedOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnSessionInviteAcceptedCallback notificationFn)
removeNotifySessionInviteAccepted(EOS_NotificationId) to remove the notificationoptions - 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.public void removeNotifySessionInviteAccepted(EOS_NotificationId inId)
inId - Handle representing the registered callbackpublic EOS_NotificationId addNotifySessionInviteRejected(EOS_Sessions_AddNotifySessionInviteRejectedOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnSessionInviteRejectedCallback notificationFn)
removeNotifySessionInviteRejected(EOS_NotificationId) to remove the notificationoptions - 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.public void removeNotifySessionInviteRejected(EOS_NotificationId inId)
inId - Handle representing the registered callbackpublic EOS_NotificationId addNotifyJoinSessionAccepted(EOS_Sessions_AddNotifyJoinSessionAcceptedOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnJoinSessionAcceptedCallback notificationFn)
removeNotifyJoinSessionAccepted(EOS_NotificationId) to remove the notificationoptions - 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.public void removeNotifyJoinSessionAccepted(EOS_NotificationId inId)
inId - Handle representing the registered callbackpublic EOS_EResult copySessionHandleByInviteId(EOS_Sessions_CopySessionHandleByInviteIdOptions options, EOS_SessionDetails outSessionHandle)
options - Structure containing the input parametersoutSessionHandle - out parameter used to receive the session handleEOS_EResult.EOS_Success if the information is available and passed out in outSessionHandleEOS_EResult.EOS_InvalidParameters if you pass an invalid invite ID or a null pointer for the out parameterEOS_EResult.EOS_IncompatibleVersion if the API version passed in is incorrectEOS_EResult.EOS_NotFound if the invite ID cannot be foundEOS_Sessions_CopySessionHandleByInviteIdOptions,
EOS_SessionDetails.release()public EOS_EResult copySessionHandleByUiEventId(EOS_Sessions_CopySessionHandleByUiEventIdOptions options, EOS_SessionDetails outSessionHandle)
options - Structure containing the input parametersoutSessionHandle - out parameter used to receive the session handleEOS_EResult.EOS_Success if the information is available and passed out in OutSessionHandleEOS_EResult.EOS_InvalidParameters if you pass an invalid invite ID or a null pointer for the out parameterEOS_EResult.EOS_IncompatibleVersion if the API version passed in is incorrectEOS_EResult.EOS_NotFound if the invite ID cannot be foundEOS_Sessions_CopySessionHandleByUiEventIdOptions,
EOS_SessionDetails.release()public EOS_EResult copySessionHandleForPresence(EOS_Sessions_CopySessionHandleForPresenceOptions options, EOS_SessionDetails outSessionHandle)
options - Structure containing the input parametersoutSessionHandle - out parameter used to receive the session handleEOS_EResult.EOS_Success if the information is available and passed out in OutSessionHandleEOS_EResult.EOS_InvalidParameters if you pass an invalid invite ID or a null pointer for the out parameterEOS_EResult.EOS_IncompatibleVersion if the API version passed in is incorrectEOS_EResult.EOS_NotFound if there is no session with bPresenceEnabledEOS_Sessions_CopySessionHandleForPresenceOptions,
EOS_SessionDetails.release()public EOS_EResult isUserInSession(EOS_Sessions_IsUserInSessionOptions options)
options - Structure containing the input parametersEOS_EResult.EOS_Success if the user is found in the specified sessionEOS_EResult.EOS_NotFound if the user is not found in the specified sessionEOS_EResult.EOS_InvalidParameters if you pass an invalid invite ID or a null pointer for the out parameterEOS_EResult.EOS_IncompatibleVersion if the API version passed in is incorrectEOS_EResult.EOS_Invalid_ProductUserID if an invalid target user is specifiedEOS_EResult.EOS_Sessions_InvalidSession if the session specified is invalidpublic EOS_EResult dumpSessionState(EOS_Sessions_DumpSessionStateOptions options)
options - Options related to dumping session state such as the session nameEOS_EResult.EOS_Success if the output operation completes successfullyEOS_EResult.EOS_NotFound if the session specified does not existEOS_EResult.EOS_InvalidParameters if any of the options are incorrectpublic EOS_NotificationId addNotifyLeaveSessionRequested(EOS_Sessions_AddNotifyLeaveSessionRequestedOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnLeaveSessionRequestedCallback notificationFn)
removeNotifyLeaveSessionRequested(EOS_NotificationId) to remove the notification.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.public void removeNotifyLeaveSessionRequested(EOS_NotificationId inId)
inId - Handle representing the registered callbackpublic EOS_NotificationId addNotifySendSessionNativeInviteRequested(EOS_Sessions_AddNotifySendSessionNativeInviteRequestedOptions options, com.sun.jna.Pointer clientData, EOS_Sessions_OnSendSessionNativeInviteRequestedCallback notificationFn)
removeNotifySendSessionNativeInviteRequested(EOS_NotificationId) to remove the notification.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.EOS_EIntegratedPlatformManagementFlags.EOS_IPMF_DisableSDKManagedSessions,
EOS_EIntegratedPlatformManagementFlags.EOS_IPMF_PreferEOSIdentity,
EOS_EIntegratedPlatformManagementFlags.EOS_IPMF_PreferIntegratedIdentitypublic void removeNotifySendSessionNativeInviteRequested(EOS_NotificationId inId)
inId - Handle representing the registered callback