Skip to main content
PFAccountManagementLinkGoogleAccountRequest 数据模型。使用设备上适用于 Android API 的 Google 登录获取 Google OAuth 2.0 凭据,然后将其传递给此 API,从而完成 Google 登录。

语法

成员

customTags PFStringDictionaryEntry const*
may be nullptr
(可选)与请求关联的可选自定义标记(例如构建版本号、外部跟踪标识符等)。 customTagsCount uint32_t customTags 的计数 forceLink bool const*
may be nullptr
(可选)如果另一个用户已链接到该账号,则取消该用户的链接并重新链接。如果当前用户已链接,则同时链接两个账号。 serverAuthCode const char*
is null-terminated
(可选)通过在客户端调用 Google Play 中用户的 getServerAuthCode() (https://developers.google.com/identity/sign-in/android/offline-access) 而获得的服务器身份验证代码。

要求

头文件: PFAccountManagementTypes.h

另请参阅

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