public class EOS_Friends_Interface
extends com.sun.jna.PointerType
EOS_Platform_Interface.getFriendsInterface()| Constructor and Description |
|---|
EOS_Friends_Interface() |
EOS_Friends_Interface(com.sun.jna.Pointer address) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptInvite(EOS_Friends_AcceptInviteOptions options,
com.sun.jna.Pointer clientData,
EOS_Friends_OnAcceptInviteCallback completionDelegate)
Starts an asynchronous task that accepts a friend invitation from another user.
|
EOS_NotificationId |
addNotifyBlockedUsersUpdate(EOS_Friends_AddNotifyBlockedUsersUpdateOptions options,
com.sun.jna.Pointer clientData,
EOS_Friends_OnBlockedUsersUpdateCallback blockedUsersUpdateHandler)
Listen for changes to blocklist for a particular account.
|
EOS_NotificationId |
addNotifyFriendsUpdate(EOS_Friends_AddNotifyFriendsUpdateOptions options,
com.sun.jna.Pointer clientData,
EOS_Friends_OnFriendsUpdateCallback friendsUpdateHandler)
Listen for changes to friends for a particular account.
|
EOS_EpicAccountId |
getBlockedUserAtIndex(EOS_Friends_GetBlockedUserAtIndexOptions options)
Retrieves the Epic Account ID of an entry from the blocklist that has already been retrieved by the EOS_Friends_QueryFriends API.
|
int |
getBlockedUsersCount(EOS_Friends_GetBlockedUsersCountOptions options)
Retrieves the number of blocked users on the blocklist that has already been retrieved by the EOS_Friends_QueryFriends API.
|
EOS_EpicAccountId |
getFriendAtIndex(EOS_Friends_GetFriendAtIndexOptions options)
Retrieves the Epic Account ID of an entry from the friends list that has already been retrieved by the EOS_Friends_QueryFriends API.
|
int |
getFriendsCount(EOS_Friends_GetFriendsCountOptions options)
Retrieves the number of friends on the friends list that has already been retrieved by the EOS_Friends_QueryFriends API.
|
EOS_EFriendsStatus |
getStatus(EOS_Friends_GetStatusOptions options)
Retrieve the friendship status between the local user and another user.
|
void |
queryFriends(EOS_Friends_QueryFriendsOptions options,
com.sun.jna.Pointer clientData,
EOS_Friends_OnQueryFriendsCallback completionDelegate)
Starts an asynchronous task that reads the user's friends list and blocklist from the backend service, caching it for future use.
|
void |
rejectInvite(EOS_Friends_RejectInviteOptions options,
com.sun.jna.Pointer clientData,
EOS_Friends_OnRejectInviteCallback completionDelegate)
Starts an asynchronous task that rejects a friend invitation from another user.
|
void |
removeNotifyBlockedUsersUpdate(EOS_NotificationId notificationId)
Stop listening for blocklist changes on a previously bound handler.
|
void |
removeNotifyFriendsUpdate(EOS_NotificationId notificationId)
Stop listening for friends changes on a previously bound handler.
|
void |
sendInvite(EOS_Friends_SendInviteOptions options,
com.sun.jna.Pointer clientData,
EOS_Friends_OnSendInviteCallback completionDelegate)
Starts an asynchronous task that sends a friend invitation to another user.
|
public EOS_Friends_Interface(com.sun.jna.Pointer address)
public EOS_Friends_Interface()
public void queryFriends(EOS_Friends_QueryFriendsOptions options, com.sun.jna.Pointer clientData, EOS_Friends_OnQueryFriendsCallback completionDelegate)
EOS_Platform_Create_Flag.EOS_PF_DISABLE_SOCIAL_OVERLAY).options - structure containing the account for which to retrieve the friends listclientData - arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate - a callback that is fired when the async operation completes, either successfully or in errorpublic void sendInvite(EOS_Friends_SendInviteOptions options, com.sun.jna.Pointer clientData, EOS_Friends_OnSendInviteCallback completionDelegate)
options - structure containing the account to send the invite from and the account to send the invite toclientData - arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate - a callback that is fired when the async operation completes, either successfully or in errorpublic void acceptInvite(EOS_Friends_AcceptInviteOptions options, com.sun.jna.Pointer clientData, EOS_Friends_OnAcceptInviteCallback completionDelegate)
options - structure containing the logged in account and the inviting accountclientData - arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate - a callback that is fired when the async operation completes, either successfully or in errorpublic void rejectInvite(EOS_Friends_RejectInviteOptions options, com.sun.jna.Pointer clientData, EOS_Friends_OnRejectInviteCallback completionDelegate)
options - structure containing the logged in account and the inviting accountclientData - arbitrary data that is passed back to you in the CompletionDelegatecompletionDelegate - a callback that is fired when the async operation completes, either successfully or in errorpublic int getFriendsCount(EOS_Friends_GetFriendsCountOptions options)
options - structure containing the Epic Account ID of user who owns the friends listgetFriendAtIndex(EOS_Friends_GetFriendAtIndexOptions)public EOS_EpicAccountId getFriendAtIndex(EOS_Friends_GetFriendAtIndexOptions options)
options - structure containing the Epic Account ID of the owner of the friends list and the index into the listgetFriendsCount(EOS_Friends_GetFriendsCountOptions),
getStatus(EOS_Friends_GetStatusOptions)public EOS_EFriendsStatus getStatus(EOS_Friends_GetStatusOptions options)
options - structure containing the Epic Account ID of the friend list to check and the account of the user to test friendship statusEOS_EFriendsStatus.EOS_FS_Friends is returned for two users that have confirmed friendshipEOS_EFriendsStatus.EOS_FS_InviteSent is returned when the local user has sent a friend invitation but the other user has not accepted or rejected itEOS_EFriendsStatus.EOS_FS_InviteReceived is returned when the other user has sent a friend invitation to the local userEOS_EFriendsStatus.EOS_FS_NotFriends is returned when there is no known relationshipEOS_EFriendsStatuspublic EOS_NotificationId addNotifyFriendsUpdate(EOS_Friends_AddNotifyFriendsUpdateOptions options, com.sun.jna.Pointer clientData, EOS_Friends_OnFriendsUpdateCallback friendsUpdateHandler)
options - Information about who would like notifications.clientData - This value is returned to the caller when FriendsUpdateHandler is invoked.friendsUpdateHandler - The callback to be invoked when a change to any friend status changes.EOS_NotificationId.EOS_INVALID_NOTIFICATIONID otherwisepublic void removeNotifyFriendsUpdate(EOS_NotificationId notificationId)
notificationId - The previously bound notification ID.public int getBlockedUsersCount(EOS_Friends_GetBlockedUsersCountOptions options)
options - structure containing the Epic Account ID of user who owns the blocklist.queryFriends(EOS_Friends_QueryFriendsOptions, Pointer, EOS_Friends_OnQueryFriendsCallback)public EOS_EpicAccountId getBlockedUserAtIndex(EOS_Friends_GetBlockedUserAtIndexOptions options)
options - structure containing the Epic Account ID of the owner of the blocklist and the index into the list.queryFriends(EOS_Friends_QueryFriendsOptions, Pointer, EOS_Friends_OnQueryFriendsCallback),
getBlockedUsersCount(EOS_Friends_GetBlockedUsersCountOptions)public EOS_NotificationId addNotifyBlockedUsersUpdate(EOS_Friends_AddNotifyBlockedUsersUpdateOptions options, com.sun.jna.Pointer clientData, EOS_Friends_OnBlockedUsersUpdateCallback blockedUsersUpdateHandler)
options - Information about the API version which is being used.clientData - This value is returned to the caller when BlockedUsersUpdateHandler is invoked.blockedUsersUpdateHandler - The callback to be invoked when a blocklist changes.public void removeNotifyBlockedUsersUpdate(EOS_NotificationId notificationId)
notificationId - The previously bound notification ID.