跳轉到主要內容
擷取具有 PlayFabId 之使用者目前的好友,僅限於擁有 PlayFab 帳戶的使用者。也會包含來自已連結帳戶 (Facebook、Steam) 的好友。您可以選擇性地排除某些已連結服務的好友。

語法

參數

titleEntityHandle   PFEntityHandle 使用 PFAuthenticationGetEntityWithSecretKeyAsync 取得之 Title 實體的 PFEntityHandle。 request   PFFriendsServerGetFriendsListRequest* 已填入的要求物件。 async   XAsyncBlock*
Inout
用於非同步作業的 XAsyncBlock。

傳回值

類型:HRESULT 此 API 作業的結果代碼。

備註

此 API 適用於 Win32、Linux 和 macOS。另請參閱 ServerAddFriendAsync、ServerGetPlayerProfileAsync、ServerRemoveFriendAsync、ServerSetFriendTagsAsync。當非同步工作完成時,請呼叫 PFFriendsServerGetFriendsListGetResultSize 和 PFFriendsServerGetFriendsListGetResult 以取得結果。

需求

標頭: PFFriends.h

另請參閱

PFFriends 成員
最後修改於 2026年10月6日