public class EOS_Presence_Interface
extends com.sun.jna.PointerType
QueryPresence must be called once per login, per remote user, before data will be available. It is currently only possible to query presence for users that are on your friends list, all other queries will return no results.
EOS_Platform_Interface.getPresenceInterface()| Constructor and Description |
|---|
EOS_Presence_Interface() |
EOS_Presence_Interface(com.sun.jna.Pointer address) |
| Modifier and Type | Method and Description |
|---|---|
EOS_NotificationId |
addNotifyJoinGameAccepted(EOS_Presence_AddNotifyJoinGameAcceptedOptions options,
com.sun.jna.Pointer clientData,
EOS_Presence_OnJoinGameAcceptedCallback notificationFn)
Register to receive notifications when a user accepts a join game option via the social overlay.
|
EOS_NotificationId |
addNotifyOnPresenceChanged(EOS_Presence_AddNotifyOnPresenceChangedOptions options,
com.sun.jna.Pointer clientData,
EOS_Presence_OnPresenceChangedCallback notificationHandler)
Register to receive notifications when presence changes.
|
EOS_Presence_Info |
copyPresence(EOS_Presence_CopyPresenceOptions options)
Get a user's cached presence object.
|
EOS_EResult |
createPresenceModification(EOS_Presence_CreatePresenceModificationOptions options,
EOS_PresenceModification outPresenceModificationHandle)
Creates a presence modification handle.
|
java.lang.String |
getJoinInfo(EOS_Presence_GetJoinInfoOptions options)
Gets a join info custom game-data string for a specific user.
|
boolean |
hasPresence(EOS_Presence_HasPresenceOptions options)
Check if we already have presence for a user
|
void |
queryPresence(EOS_Presence_QueryPresenceOptions options,
com.sun.jna.Pointer clientData,
EOS_Presence_OnQueryPresenceCompleteCallback completionDelegate)
Query a user's presence.
|
void |
removeNotifyJoinGameAccepted(EOS_NotificationId inId)
Unregister from receiving notifications when a user accepts a join game option via the social overlay.
|
void |
removeNotifyOnPresenceChanged(EOS_NotificationId notificationId)
Unregister a previously bound notification handler from receiving presence update notifications
|
void |
setPresence(EOS_Presence_SetPresenceOptions options,
com.sun.jna.Pointer clientData,
EOS_Presence_SetPresenceCompleteCallback completionDelegate)
Sets your new presence with the data applied to a PresenceModificationHandle.
|
public EOS_Presence_Interface(com.sun.jna.Pointer address)
public EOS_Presence_Interface()
public void queryPresence(EOS_Presence_QueryPresenceOptions options, com.sun.jna.Pointer clientData, EOS_Presence_OnQueryPresenceCompleteCallback completionDelegate)
options - Object containing properties related to who is querying presence and for what userclientData - Optional pointer to help track this request, that is returned in the completion callbackcompletionDelegate - Pointer to a function that handles receiving the completion informationpublic boolean hasPresence(EOS_Presence_HasPresenceOptions options)
options - Object containing properties related to who is requesting presence and for what userpublic EOS_Presence_Info copyPresence(EOS_Presence_CopyPresenceOptions options) throws EOSException
options - Object containing properties related to who is requesting presence and for what userEOSException - if the result is an error codeEOS_Presence_Info.release()public EOS_EResult createPresenceModification(EOS_Presence_CreatePresenceModificationOptions options, EOS_PresenceModification outPresenceModificationHandle)
options - Object containing properties related to the user modifying their presenceoutPresenceModificationHandle - Pointer to a Presence Modification Handle to be set if successfulEOS_EResult.EOS_Success if we successfully created the Presence Modification Handle pointed at in OutPresenceModificationHandle, or an error result if the input data was invalidEOS_PresenceModification.release(),
setPresence(EOS_Presence_SetPresenceOptions, Pointer, EOS_Presence_SetPresenceCompleteCallback),
EOS_PresenceModification.setStatus(EOS_PresenceModification_SetStatusOptions),
EOS_PresenceModification.setRawRichText(EOS_PresenceModification_SetRawRichTextOptions),
EOS_PresenceModification.setData(EOS_PresenceModification_SetDataOptions),
EOS_PresenceModification.deleteData(EOS_PresenceModification_DeleteDataOptions)public void setPresence(EOS_Presence_SetPresenceOptions options, com.sun.jna.Pointer clientData, EOS_Presence_SetPresenceCompleteCallback completionDelegate)
options - Object containing a PresenceModificationHandle and associated user dataclientData - Optional pointer to help track this request, that is returned in the completion callbackcompletionDelegate - Pointer to a function that handles receiving the completion informationcreatePresenceModification(EOS_Presence_CreatePresenceModificationOptions, EOS_PresenceModification),
EOS_PresenceModification.release()public EOS_NotificationId addNotifyOnPresenceChanged(EOS_Presence_AddNotifyOnPresenceChangedOptions options, com.sun.jna.Pointer clientData, EOS_Presence_OnPresenceChangedCallback notificationHandler)
options - Structure containing information about the request.clientData - Data the is returned to when NotificationHandler is invokednotificationHandler - The callback to be fired when a presence change occursEOS_NotificationId.EOS_INVALID_NOTIFICATIONID,
removeNotifyOnPresenceChanged(EOS_NotificationId)public void removeNotifyOnPresenceChanged(EOS_NotificationId notificationId)
notificationId - The Notification ID representing the registered callbackpublic EOS_NotificationId addNotifyJoinGameAccepted(EOS_Presence_AddNotifyJoinGameAcceptedOptions options, com.sun.jna.Pointer clientData, EOS_Presence_OnJoinGameAcceptedCallback notificationFn)
removeNotifyJoinGameAccepted(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 removeNotifyJoinGameAccepted(EOS_NotificationId inId)
inId - Handle representing the registered callbackpublic java.lang.String getJoinInfo(EOS_Presence_GetJoinInfoOptions options) throws EOSException
This value will be valid only after a QueryPresence call has successfully completed.
options - Object containing an associated userEOSInvalidParametersException - if you pass a null pointer for the out parameterEOSNotFoundException - if there is user or the location string was not foundEOSLimitExceededException - The OutBuffer is not large enough to receive the location string. InOutBufferLength contains the required minimum length to perform the operation successfullyEOSExceptionEOS_Defines.EOS_PRESENCEMODIFICATION_JOININFO_MAX_LENGTH