Pico Unreal Platform SDK
|
Pico Presence interface class. More...
#include <PicoPresenceInterface.h>
Public Member Functions | |
bool | PresenceClear (const FOnPresenceClearComplete &Delegate=FOnPresenceClearComplete()) |
Clears a user's presence data in the current app. More... | |
bool | ReadInvitableUser (TArray< FString > SuggestedUserList, const FOnReadInvitableUserComplete &Delegate=FOnReadInvitableUserComplete()) |
Reads a list of invitable users for a user. More... | |
bool | GetInvitableFriendList (TArray< TSharedRef< FOnlinePicoFriend > > &OutFriends) |
Gets a list of invitable friends for a user. These friends are previously retrieved from the online service when PresenceGetDestinations is complete. More... | |
bool | PresenceSet (const FString &ApiName, const FString &LobbySessionId, const FString &MatchSessionId, bool bIsJoinable, const FString &Extra, const FOnPresenceSetComplete &Delegate=FOnPresenceSetComplete()) |
Sets presence data for a user in the current app. More... | |
bool | PresenceSetDestination (const FString &ApiName, const FOnPresenceSetDestinationComplete &Delegate=FOnPresenceSetDestinationComplete()) |
Replaces a user's current destination with the provided one. More... | |
bool | PresenceSetSetIsJoinable (bool bIsJoinable, const FOnPresenceSetIsJoinableComplete &Delegate=FOnPresenceSetIsJoinableComplete()) |
Sets whether a user is joinable. More... | |
bool | PresenceSetLobbySession (const FString &LobbySession, const FOnPresenceSetLobbySessionComplete &Delegate=FOnPresenceSetLobbySessionComplete()) |
Replaces a user's current lobby session ID with the provided one. More... | |
bool | PresenceSetMatchSession (const FString &MatchSession, const FOnPresenceSetMatchSessionComplete &Delegate=FOnPresenceSetMatchSessionComplete()) |
Replaces a user's current match session ID with the provided one. More... | |
bool | PresenceSetExtra (const FString &Extra, const FOnPresenceSetPresenceExtraComplete &Delegate=FOnPresenceSetPresenceExtraComplete()) |
Sets extra presence data for a user. More... | |
bool | PresenceReadSendInvites (const FOnReadSentInvitesComplete &Delegate=FOnReadSentInvitesComplete()) |
Reads a list of sent invitations. More... | |
bool | PresenceSendInvites (TArray< FString > UserIdArray, const FOnSentInvitesComplete &Delegate=FOnSentInvitesComplete()) |
Sends invitations to users. More... | |
bool | GetSendInvitesList (TArray< FPicoApplicationInvite > &OutList) |
Gets a list of sent invitations when PresenceSendInvites or PresenceReadSendInvites is complete. More... | |
bool | PresenceGetDestinations (const FOnGetDestinationsComplete &Delegate=FOnGetDestinationsComplete()) |
Gets all the destinations that can be set for a user. More... | |
bool | PresenceGetDestnationsList (TArray< FPicoDestination > &OutList) |
Gets a list of destinations when PresenceGetDestinations is complete. More... | |
Pico Presence interface class.
bool GetInvitableFriendList | ( | TArray< TSharedRef< FOnlinePicoFriend > > & | OutFriends | ) |
Gets a list of invitable friends for a user. These friends are previously retrieved from the online service when PresenceGetDestinations
is complete.
OutFriends | The [out] array that receives the copied data. |
true
: success false
: failure bool GetSendInvitesList | ( | TArray< FPicoApplicationInvite > & | OutList | ) |
Gets a list of sent invitations when PresenceSendInvites
or PresenceReadSendInvites
is complete.
OutList | The [out] array that receives the copied data. |
true
: success false
: failure bool PresenceClear | ( | const FOnPresenceClearComplete & | Delegate = FOnPresenceClearComplete() | ) |
Clears a user's presence data in the current app.
Delegate | Will be executed when the request has been completed. |
true
: success false
: failure bool PresenceGetDestinations | ( | const FOnGetDestinationsComplete & | Delegate = FOnGetDestinationsComplete() | ) |
Gets all the destinations that can be set for a user.
PresenceGetDescriptionList
after the Delegate has been executed. Delegate | Will be executed when the request has been completed. |
true
: success false
: failure bool PresenceGetDestnationsList | ( | TArray< FPicoDestination > & | OutList | ) |
Gets a list of destinations when PresenceGetDestinations
is complete.
OutList | The [out] array that receives the copied data. |
true
: success false
: failure bool PresenceReadSendInvites | ( | const FOnReadSentInvitesComplete & | Delegate = FOnReadSentInvitesComplete() | ) |
Reads a list of sent invitations.
GetSendInvitesList
after the Delegate has been executed. Delegate | Will be executed when the request has been completed. |
true
: success false
: failure bool PresenceSendInvites | ( | TArray< FString > | UserIdArray, |
const FOnSentInvitesComplete & | Delegate = FOnSentInvitesComplete() |
||
) |
Sends invitations to users.
GetSendInvitesList
after the Delegate has been executed. UserIdArray | The ID array of the users to invite. |
Delegate | Will be executed when the request has been complete. |
true
: success false
: failure bool PresenceSet | ( | const FString & | ApiName, |
const FString & | LobbySessionId, | ||
const FString & | MatchSessionId, | ||
bool | bIsJoinable, | ||
const FString & | Extra, | ||
const FOnPresenceSetComplete & | Delegate = FOnPresenceSetComplete() |
||
) |
Sets presence data for a user in the current app.
ApiName | The API name of the destination. |
LobbySessionId | The lobby session ID of the presence, which identifies a user group or team. Users with the same lobby session ID can play together or form a team in a game. |
MatchSessionId | The match session ID of the presence, which identifies all users within the same destination, such as maps and levels. Users with different lobby session IDs will have the same match session ID when playing the same match. |
bIsJoinable | Defines whether the presence is joinable:
|
Extra | Extra presence data defined by the developer. |
Delegate | Will be executed when the request has been completed. |
true
: success false
: failure bool PresenceSetDestination | ( | const FString & | ApiName, |
const FOnPresenceSetDestinationComplete & | Delegate = FOnPresenceSetDestinationComplete() |
||
) |
Replaces a user's current destination with the provided one.
ApiName | The API name of the new destination. |
Delegate | Will be executed when the request has been completed. |
true
: success false
: failure bool PresenceSetExtra | ( | const FString & | Extra, |
const FOnPresenceSetPresenceExtraComplete & | Delegate = FOnPresenceSetPresenceExtraComplete() |
||
) |
Sets extra presence data for a user.
Extra | Extra presence data defined by the developer. |
Delegate | Will be executed when the request has been completed. |
true
: success false
: failure bool PresenceSetLobbySession | ( | const FString & | LobbySession, |
const FOnPresenceSetLobbySessionComplete & | Delegate = FOnPresenceSetLobbySessionComplete() |
||
) |
Replaces a user's current lobby session ID with the provided one.
LobbySession | The new lobby session ID. |
Delegate | Will be executed when the request has been completed. |
true
: success false
: failure bool PresenceSetMatchSession | ( | const FString & | MatchSession, |
const FOnPresenceSetMatchSessionComplete & | Delegate = FOnPresenceSetMatchSessionComplete() |
||
) |
Replaces a user's current match session ID with the provided one.
MatchSession | The new match session ID. |
Delegate | Will be executed when the request has been completed. |
true
: success false
: failure bool PresenceSetSetIsJoinable | ( | bool | bIsJoinable, |
const FOnPresenceSetIsJoinableComplete & | Delegate = FOnPresenceSetIsJoinableComplete() |
||
) |
Sets whether a user is joinable.
bIsJoinable | Defines whether the user is joinable:
|
Delegate | Will be executed when the request has been completed. |
true
: success false
: failure bool ReadInvitableUser | ( | TArray< FString > | SuggestedUserList, |
const FOnReadInvitableUserComplete & | Delegate = FOnReadInvitableUserComplete() |
||
) |
Reads a list of invitable users for a user.
GetInvitableFriendList
after the Delegate has been executed. SuggestedUserList | The ID list of users suggested being invited. |
Delegate | Will be executed when the request has been completed. |
true
: success false
: failure