Skip to main content
检索具有 PlayFabId 的用户的当前好友,限于拥有 PlayFab 帐户的用户。已链接帐户(Facebook、Steam)的好友也包括在内。你可以选择性地排除某些链接服务的好友。

语法

参数

titleEntityHandle PFEntityHandle 使用 PFAuthenticationGetEntityWithSecretKeyAsync 获取的标题实体的 PFEntityHandle。 request PFFriendsServerGetFriendsListRequest* 已填充的请求对象。 async XAsyncBlock*
Inout
用于异步操作的 XAsyncBlock。

返回值

类型:HRESULT 此 API 操作的结果代码。

备注

此 API 在 Win32、Linux 和 macOS 上可用。另请参阅 ServerAddFriendAsync、ServerGetPlayerProfileAsync、ServerRemoveFriendAsync、ServerSetFriendTagsAsync。当异步任务完成时,请调用 PFFriendsServerGetFriendsListGetResultSizePFFriendsServerGetFriendsListGetResult 以获取结果。

要求

头文件: PFFriends.h

另请参阅

PFFriends 成员
最后修改于 2026年8月13日