Pico Unreal Platform SDK

Functions

static bool PresenceClear (UObject *WorldContextObject, FOnlineManagerPresenceClearDelegate InPresenceClearDelegate)
 Clears a user's presence data in the current app. More...
 
static void ReadInvitableUser (UObject *WorldContextObject, TArray< FString > SuggestedUserList, FOnlineManagerPresenceReadInvitableUserDelegate InReadInvitableUserDelegate)
 Reads a list of invitable users for a user. More...
 
static bool GetInvitableFriendList (UObject *WorldContextObject, TArray< FPicoUserInfo > &OutFriendsList)
 Gets a list of invitable friends for a user. These friends are previously retrieved from the online service when PresenceGetDestinations is complete. More...
 
static bool PresenceSet (UObject *WorldContextObject, const FString &ApiName, const FString &LobbySessionId, const FString &MatchSessionId, bool bIsJoinable, const FString &Extra, FOnlineManagerPresenceSetDelegate InPresenceSetDelegate)
 Sets presence data for a user in the current app. More...
 
static bool PresenceSetDestination (UObject *WorldContextObject, const FString &ApiName, FOnlineManagerPresenceSetDestinationDelegate InPresenceSetDestinationDelegate)
 Replaces a user's current destination with the provided one. More...
 
static bool PresenceSetIsJoinable (UObject *WorldContextObject, bool bIsJoinable, FOnlineManagerPresenceSetIsJoinableDelegate InPresenceSetIsJoinableDelegate)
 Sets whether a user is joinable. More...
 
static bool PresenceSetLobbySession (UObject *WorldContextObject, const FString &LobbySession, FOnlineManagerPresenceSetLobbySessionDelegate InPresenceSetLobbySessionDelegate)
 Replaces a user's current lobby session ID with the provided one. More...
 
static bool PresenceSetMatchSession (UObject *WorldContextObject, const FString &MatchSession, FOnlineManagerPresenceSetMatchSessionDelegate InPresenceSetMatchSessionDelegate)
 Replaces a user's current match session ID with the provided one. More...
 
static bool PresenceSetExtra (UObject *WorldContextObject, const FString &Extra, FOnlineManagerPresenceSetExtraDelegate InPresenceSetExtraDelegate)
 Sets extra presence data for a user. More...
 
static bool PresenceReadSendInvites (UObject *WorldContextObject, FOnlineManagerPresenceReadSentInvitesDelegate InPresenceReadSendInvitesDelegate)
 Reads a list of sent invitations. More...
 
static bool PresenceSendInvites (UObject *WorldContextObject, TArray< FString > UserIdArray, FOnlineManagerPresenceSentInvitesDelegate InPresenceSentInvitesDelegate)
 Sends invitations to users. More...
 
static bool GetSendInvitesList (UObject *WorldContextObject, TArray< FPicoApplicationInvite > &OutList)
 Gets a list of sent invitations when PresenceSendInvites or PresenceReadSendInvites is complete. More...
 
static bool PresenceGetDestinations (UObject *WorldContextObject, FOnlineManagerPresenceGetDestinationsDelegate InPresenceGetDestinationsDelegate)
 Gets all the destinations that can be set for a user. More...
 
static bool PresenceGetDestinationsList (UObject *WorldContextObject, TArray< FPicoDestination > &OutList)
 Gets a list of destinations when PresenceGetDestinations is complete. More...
 

Detailed Description

This is the BP_Presence group

Function Documentation

◆ GetInvitableFriendList()

bool GetInvitableFriendList ( UObject *  WorldContextObject,
TArray< FPicoUserInfo > &  OutFriendsList 
)
static

Gets a list of invitable friends for a user. These friends are previously retrieved from the online service when PresenceGetDestinations is complete.

Parameters
WorldContextObjectUsed to get the information about the current world.


Parameters
OutFriendsListThe [out] array that receives the copied data.
Returns
Bool:
  • true: the friend list has been found
  • false: otherwise

◆ GetSendInvitesList()

bool GetSendInvitesList ( UObject *  WorldContextObject,
TArray< FPicoApplicationInvite > &  OutList 
)
static

Gets a list of sent invitations when PresenceSendInvites or PresenceReadSendInvites is complete.

Parameters
WorldContextObjectUsed to get the information about the current world.
OutListThe [out] array that receives the copied data.
Returns
Bool:
  • true: the invitation list has been found
  • false: otherwise

◆ PresenceClear()

bool PresenceClear ( UObject *  WorldContextObject,
FOnlineManagerPresenceClearDelegate  InPresenceClearDelegate 
)
static

Clears a user's presence data in the current app.

Parameters
WorldContextObjectUsed to get the information about the current world.
InPresenceClearDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ PresenceGetDestinations()

bool PresenceGetDestinations ( UObject *  WorldContextObject,
FOnlineManagerPresenceGetDestinationsDelegate  InPresenceGetDestinationsDelegate 
)
static

Gets all the destinations that can be set for a user.

Note
Call PresenceGetDescriptionList after the Delegate has been executed.
Parameters
WorldContextObjectUsed to get the information about the current world.
InPresenceGetDestinationsDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ PresenceGetDestinationsList()

bool PresenceGetDestinationsList ( UObject *  WorldContextObject,
TArray< FPicoDestination > &  OutList 
)
static

Gets a list of destinations when PresenceGetDestinations is complete.

Parameters
WorldContextObjectUsed to get the information about the current world.
OutListThe [out] array that receives the copied data.
Returns
Bool:
  • true: success
  • false: failure

◆ PresenceReadSendInvites()

bool PresenceReadSendInvites ( UObject *  WorldContextObject,
FOnlineManagerPresenceReadSentInvitesDelegate  InPresenceReadSendInvitesDelegate 
)
static

Reads a list of sent invitations.

Note
Call GetSendInvitesList after the Delegate has been executed.
Parameters
WorldContextObjectUsed to get the information about the current world.
InPresenceReadSendInvitesDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure
    Returns

◆ PresenceSendInvites()

bool PresenceSendInvites ( UObject *  WorldContextObject,
TArray< FString >  UserIdArray,
FOnlineManagerPresenceSentInvitesDelegate  InPresenceSentInvitesDelegate 
)
static

Sends invitations to users.

Note
Call GetSendInvitesList after the Delegate has been executed.
Parameters
WorldContextObjectUsed to get the information about the current world.
UserIdArrayThe ID array of the users to invite.
InPresenceSentInvitesDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ PresenceSet()

bool PresenceSet ( UObject *  WorldContextObject,
const FString &  ApiName,
const FString &  LobbySessionId,
const FString &  MatchSessionId,
bool  bIsJoinable,
const FString &  Extra,
FOnlineManagerPresenceSetDelegate  InPresenceSetDelegate 
)
static

Sets presence data for a user in the current app.

Parameters
WorldContextObjectUsed to get the information about the current world.


Parameters
ApiNameThe API name of the destination.
LobbySessionIdLobby session ID is used to identify a user group or team. Users with the same lobby session ID can play together or form a team in a game.
MatchSessionIdMatch session ID is used to identify all users within a 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.
bIsJoinableDefines whether the user is joinable:
  • true: joinable
  • false: not joinable
ExtraExtra presence data defined by the developer.
InPresenceSetDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ PresenceSetDestination()

bool PresenceSetDestination ( UObject *  WorldContextObject,
const FString &  ApiName,
FOnlineManagerPresenceSetDestinationDelegate  InPresenceSetDestinationDelegate 
)
static

Replaces a user's current destination with the provided one.

Note
Other presence parameter settings will remain the same.
Parameters
WorldContextObjectUsed to get the information about the current world.


Parameters
ApiNameThe API name of the new destination.
InPresenceSetDestinationDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ PresenceSetExtra()

bool PresenceSetExtra ( UObject *  WorldContextObject,
const FString &  Extra,
FOnlineManagerPresenceSetExtraDelegate  InPresenceSetExtraDelegate 
)
static

Sets extra presence data for a user.

Parameters
WorldContextObjectUsed to get the information about the current world.
ExtraThe extra presence data defined by the developer.
InPresenceSetExtraDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ PresenceSetIsJoinable()

bool PresenceSetIsJoinable ( UObject *  WorldContextObject,
bool  bIsJoinable,
FOnlineManagerPresenceSetIsJoinableDelegate  InPresenceSetIsJoinableDelegate 
)
static

Sets whether a user is joinable.

Note
Other presence parameter settings will remain the same. If the destination or session ID has not been set up for the user, the user cannot be set as "joinable".
Parameters
WorldContextObjectUsed to get the information about the current world.


Parameters
bIsJoinableDefines whether the user is joinable:
  • true: joinable
  • false: not joinable
InPresenceSetIsJoinableDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ PresenceSetLobbySession()

bool PresenceSetLobbySession ( UObject *  WorldContextObject,
const FString &  LobbySession,
FOnlineManagerPresenceSetLobbySessionDelegate  InPresenceSetLobbySessionDelegate 
)
static

Replaces a user's current lobby session ID with the provided one.

Note
Other presence parameter settings will remain the same.
Parameters
WorldContextObjectUsed to get the information about the current world.


Parameters
LobbySessionIdThe new lobby session ID.
InPresenceSetLobbySessionDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ PresenceSetMatchSession()

bool PresenceSetMatchSession ( UObject *  WorldContextObject,
const FString &  MatchSession,
FOnlineManagerPresenceSetMatchSessionDelegate  InPresenceSetMatchSessionDelegate 
)
static

Replaces a user's current match session ID with the provided one.

Note
Other presence-realated parameters will remain the same.
Parameters
WorldContextObjectUsed to get the information about the current world.
MatchSessionIdThe new match session ID.
InPresenceSetMatchSessionDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure

◆ ReadInvitableUser()

void ReadInvitableUser ( UObject *  WorldContextObject,
TArray< FString >  SuggestedUserList,
FOnlineManagerPresenceReadInvitableUserDelegate  InReadInvitableUserDelegate 
)
static

Reads a list of invitable users for a user.

Note
Call GetInvitableFriendList after the Delegate has been executed.
Parameters
WorldContextObjectUsed to get the information about the current world.
SuggestedUserListThe ID list of the users suggested being invited.
InReadInvitableUserDelegateWill be executed when the request has been completed.
Returns
Bool:
  • true: success
  • false: failure