简体   繁体   English

Android的Google帐户身份验证器支持哪些功能?

[英]What features are supported by Android's Google accounts authenticator?

The API documentation for the hasFeatures method of Android's AccountManager has the following to say about which features are supported by each authenticator: API文档hasFeatures Android的方法AccountManager有下面要说的哪些功能是由每个认证的支持:

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. 例如,功能用于判断Google帐户是否启用了特定服务(例如Google日历或Google Talk)。 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? 有没有人知道“与有问题的身份验证器相关联的地方”实际上是用于Google帐户的身份验证器? I would like to know which features are supported. 我想知道支持哪些功能。

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. 我还没有找到任何官方文档,但我已经找出了主要用例,即确定Google帐户是否与特定Google服务相关联。

There is a feature for each service and the feature name is of the form service_<service_code_name> . 每个服务都有一个功能,功能名称的格式为service_<service_code_name> Using this (possibly out-of-date) list of service code names for Google services, we can check for features such as service_lh2 (Picasa), service_groups2 (Google Groups) and service_mail (GMail). 使用这个(可能是过时的) Google服务的服务代码名称列表 ,我们可以检查诸如service_lh2 (Picasa), service_groups2 (Google Groups)和service_mail (GMail)等功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM