LootLocker Unity SDK 8.0.0
Game backend SDK for Unity
Loading...
Searching...
No Matches
Friends

Detailed Description

Cross-platform friend list — send, accept, and manage friend requests.

Players can add each other using any supported identifier (player ID, ULID, public UID, display name, or first-party IDs such as Steam/PSN) regardless of platform. Friend requests require mutual acceptance. Players can also block others. The Friends and Followers systems are independent and can be used separately.

See the LootLocker documentation.

Function Documentation

◆ AcceptFriendRequest()

static void LootLocker.Requests.LootLockerSDKManager.AcceptFriendRequest ( string  playerID,
Action< LootLockerFriendsOperationResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Accept the incoming friend request from the specified player.

Parameters
playerIDThe id of the player that sent the friend request you wish to accept
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ BlockPlayer()

static void LootLocker.Requests.LootLockerSDKManager.BlockPlayer ( string  playerID,
Action< LootLockerFriendsOperationResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Block the specified player (adding them to the currently logged in players block list and removing them the friend list)

Parameters
playerIDThe id of the player to block
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ CancelFriendRequest()

static void LootLocker.Requests.LootLockerSDKManager.CancelFriendRequest ( string  playerID,
Action< LootLockerFriendsOperationResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Cancel the outgoing friend request made to the specified player by the currently logged in player.

Parameters
playerIDThe id of the player to cancel the friend request for
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ DeclineFriendRequest()

static void LootLocker.Requests.LootLockerSDKManager.DeclineFriendRequest ( string  playerID,
Action< LootLockerFriendsOperationResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Decline the incoming friend request from the specified player.

Parameters
playerIDThe id of the player that sent the friend request you wish to decline
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ DeleteFriend()

static void LootLocker.Requests.LootLockerSDKManager.DeleteFriend ( string  playerID,
Action< LootLockerFriendsOperationResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Remove the specified player from the currently logged in player's friends list.

Parameters
playerIDThe id of the player to delete from the friends list
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ GetFriend()

static void LootLocker.Requests.LootLockerSDKManager.GetFriend ( string  friendPlayerULID,
Action< LootLockerGetFriendResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Get a specific friend of the currently logged in player.

Parameters
friendPlayerULIDThe ULID of the player for whom to get friend information
onCompleteAction for handling the response
forPlayerWithUlidOptional: Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListBlockedPlayers()

static void LootLocker.Requests.LootLockerSDKManager.ListBlockedPlayers ( Action< LootLockerListBlockedPlayersResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

List the players (if any) that are blocked by the currently logged in player with default pagination.

Parameters
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListBlockedPlayersPaginated()

static void LootLocker.Requests.LootLockerSDKManager.ListBlockedPlayersPaginated ( int  PerPage,
int  Page,
Action< LootLockerListBlockedPlayersResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

List the players (if any) that are blocked by the currently logged in player.

Parameters
PerPageThe number of results to return per page
PageThe page number to retrieve
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListFriends()

static void LootLocker.Requests.LootLockerSDKManager.ListFriends ( Action< LootLockerListFriendsResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

List friends for the currently logged in player with default pagination.

Parameters
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListFriendsByPlatform()

static void LootLocker.Requests.LootLockerSDKManager.ListFriendsByPlatform ( LL_AuthPlatforms  Platform,
int  PerPage,
int  Page,
Action< LootLockerListFriendsResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

List friends that are on the specified platform for the currently logged in player.

Parameters
PlatformThe platform to filter friends by (e.g., "Steam", "Xbox", "PlayStation")
PerPageThe number of results to return per page
PageThe page number to return
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListFriendsPaginated()

static void LootLocker.Requests.LootLockerSDKManager.ListFriendsPaginated ( int  PerPage,
int  Page,
Action< LootLockerListFriendsResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

List friends for the currently logged in player.

Parameters
PerPageThe number of results to return per page
PageThe page number to return
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListIncomingFriendRequests()

static void LootLocker.Requests.LootLockerSDKManager.ListIncomingFriendRequests ( Action< LootLockerListIncomingFriendRequestsResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

List incoming friend requests for the currently logged in player (friend requests made by others for this player) with default pagination.

Parameters
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListIncomingFriendRequestsPaginated()

static void LootLocker.Requests.LootLockerSDKManager.ListIncomingFriendRequestsPaginated ( int  PerPage,
int  Page,
Action< LootLockerListIncomingFriendRequestsResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

List incoming friend requests for the currently logged in player with pagination (friend requests made by others for this player)

Parameters
PerPageThe number of results to return per page
PageThe page number to retrieve
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListOutgoingFriendRequests()

static void LootLocker.Requests.LootLockerSDKManager.ListOutgoingFriendRequests ( Action< LootLockerListOutgoingFriendRequestsResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

List outgoing friend requests for the currently logged in player (friend requests made by this player)

Parameters
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListOutGoingFriendRequestsPaginated()

static void LootLocker.Requests.LootLockerSDKManager.ListOutGoingFriendRequestsPaginated ( int  PerPage,
int  Page,
Action< LootLockerListOutgoingFriendRequestsResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

List outgoing friend requests for the currently logged in player with pagination (friend requests made by this player)

Parameters
PerPageThe number of results to return per page
PageThe page number to retrieve
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ SendFriendRequest()

static void LootLocker.Requests.LootLockerSDKManager.SendFriendRequest ( string  playerID,
Action< LootLockerFriendsOperationResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Send a friend request to the specified player for the currently logged in player.

Parameters
playerIDThe id of the player to send the friend request to
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ UnblockPlayer()

static void LootLocker.Requests.LootLockerSDKManager.UnblockPlayer ( string  playerID,
Action< LootLockerFriendsOperationResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Unblock the specified player (remove from the currently logged in players block list)

Parameters
playerIDThe id of the player to unblock
onCompleteonComplete Action for handling the response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

Functions

static void LootLocker.Requests.LootLockerSDKManager.ListFriends (Action< LootLockerListFriendsResponse > onComplete, string forPlayerWithUlid=null)
 List friends for the currently logged in player with default pagination.
 
static void LootLocker.Requests.LootLockerSDKManager.ListFriendsPaginated (int PerPage, int Page, Action< LootLockerListFriendsResponse > onComplete, string forPlayerWithUlid=null)
 List friends for the currently logged in player.
 
static void LootLocker.Requests.LootLockerSDKManager.ListFriendsByPlatform (LL_AuthPlatforms Platform, int PerPage, int Page, Action< LootLockerListFriendsResponse > onComplete, string forPlayerWithUlid=null)
 List friends that are on the specified platform for the currently logged in player.
 
static void LootLocker.Requests.LootLockerSDKManager.GetFriend (string friendPlayerULID, Action< LootLockerGetFriendResponse > onComplete, string forPlayerWithUlid=null)
 Get a specific friend of the currently logged in player.
 
static void LootLocker.Requests.LootLockerSDKManager.ListIncomingFriendRequests (Action< LootLockerListIncomingFriendRequestsResponse > onComplete, string forPlayerWithUlid=null)
 List incoming friend requests for the currently logged in player (friend requests made by others for this player) with default pagination.
 
static void LootLocker.Requests.LootLockerSDKManager.ListIncomingFriendRequestsPaginated (int PerPage, int Page, Action< LootLockerListIncomingFriendRequestsResponse > onComplete, string forPlayerWithUlid=null)
 List incoming friend requests for the currently logged in player with pagination (friend requests made by others for this player)
 
static void LootLocker.Requests.LootLockerSDKManager.ListOutgoingFriendRequests (Action< LootLockerListOutgoingFriendRequestsResponse > onComplete, string forPlayerWithUlid=null)
 List outgoing friend requests for the currently logged in player (friend requests made by this player)
 
static void LootLocker.Requests.LootLockerSDKManager.ListOutGoingFriendRequestsPaginated (int PerPage, int Page, Action< LootLockerListOutgoingFriendRequestsResponse > onComplete, string forPlayerWithUlid=null)
 List outgoing friend requests for the currently logged in player with pagination (friend requests made by this player)
 
static void LootLocker.Requests.LootLockerSDKManager.SendFriendRequest (string playerID, Action< LootLockerFriendsOperationResponse > onComplete, string forPlayerWithUlid=null)
 Send a friend request to the specified player for the currently logged in player.
 
static void LootLocker.Requests.LootLockerSDKManager.CancelFriendRequest (string playerID, Action< LootLockerFriendsOperationResponse > onComplete, string forPlayerWithUlid=null)
 Cancel the outgoing friend request made to the specified player by the currently logged in player.
 
static void LootLocker.Requests.LootLockerSDKManager.AcceptFriendRequest (string playerID, Action< LootLockerFriendsOperationResponse > onComplete, string forPlayerWithUlid=null)
 Accept the incoming friend request from the specified player.
 
static void LootLocker.Requests.LootLockerSDKManager.DeclineFriendRequest (string playerID, Action< LootLockerFriendsOperationResponse > onComplete, string forPlayerWithUlid=null)
 Decline the incoming friend request from the specified player.
 
static void LootLocker.Requests.LootLockerSDKManager.ListBlockedPlayers (Action< LootLockerListBlockedPlayersResponse > onComplete, string forPlayerWithUlid=null)
 List the players (if any) that are blocked by the currently logged in player with default pagination.
 
static void LootLocker.Requests.LootLockerSDKManager.ListBlockedPlayersPaginated (int PerPage, int Page, Action< LootLockerListBlockedPlayersResponse > onComplete, string forPlayerWithUlid=null)
 List the players (if any) that are blocked by the currently logged in player.
 
static void LootLocker.Requests.LootLockerSDKManager.BlockPlayer (string playerID, Action< LootLockerFriendsOperationResponse > onComplete, string forPlayerWithUlid=null)
 Block the specified player (adding them to the currently logged in players block list and removing them the friend list)
 
static void LootLocker.Requests.LootLockerSDKManager.UnblockPlayer (string playerID, Action< LootLockerFriendsOperationResponse > onComplete, string forPlayerWithUlid=null)
 Unblock the specified player (remove from the currently logged in players block list)
 
static void LootLocker.Requests.LootLockerSDKManager.DeleteFriend (string playerID, Action< LootLockerFriendsOperationResponse > onComplete, string forPlayerWithUlid=null)
 Remove the specified player from the currently logged in player's friends list.