Android 的 Google 帐户身份验证器支持哪些功能?
API 文档 Android 的 AccountManager
的 hasFeatures
方法具有以下内容来说明每个身份验证器支持哪些功能:
帐户特征是身份验证器特定的字符串标记,用于识别 布尔帐户属性。例如,特征用于告诉 Google 帐户是否有特定服务(例如 Google 日历或 Google Talk)已启用。功能名称及其含义 发布在与相关验证器相关的某个地方。
有人知道“与相关身份验证器相关的某个地方”实际上是用于 Google 帐户的身份验证器吗?我想知道支持哪些功能。
The API documentation for the hasFeatures
method of Android's AccountManager
has the following to say about which features are supported by each authenticator:
Account features are authenticator-specific string tokens identifying
boolean account properties. For example, features are used to tell
whether Google accounts have a particular service (such as Google
Calendar or Google Talk) enabled. The feature names and their meanings
are published somewhere associated with the authenticator in question.
Does anybody have any idea where "somewhere associated with the authenticator in question" actually is for the authenticator used for Google accounts? I would like to know which features are supported.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我仍然没有找到任何官方文档,但我已经弄清楚了主要用例,即确定 Google 帐户是否与特定 Google 服务关联。
每个服务都有一个功能,功能名称的格式为
service_
。使用这个(可能是out- of-date)Google 服务的服务代码名称列表,我们可以检查诸如service_lh2
(Picasa) 等功能,service_groups2
(Google 网上论坛) 和service_mail
(GMail)。I still haven't found any official documentation but I have figured out the main use case, that of determining whether a Google account is associated with a specific Google service.
There is a feature for each service and the feature name is of the form
service_<service_code_name>
. Using this (possibly out-of-date) list of service code names for Google services, we can check for features such asservice_lh2
(Picasa),service_groups2
(Google Groups) andservice_mail
(GMail).