支持哪些功能通过Android的谷歌帐户的认证?帐户、功能、Android

2023-09-05 01:56:09 作者:ㄜ懷念過去☆

的API对于文档的 hasFeatures Android的的AccountManager 有以下谈谈哪些功能是由每个受支持的方法身份验证:

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.

推荐答案

我还没有发现任何正式的文件,但我已经想通了,主要使用的情况下,确定与特定的谷歌服务,一个谷歌帐户是否关联

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.

这是一个每个服务和功能名称的功能形式 SERVICE_< SERVICE_ code_name> 。使用服务code这个名字(可能外的日期)列表为谷歌服务,我们可以检查的功能,如 service_lh2 (Picasa中), service_groups2 (谷歌论坛)和 service_mail (GMail的)。

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 as service_lh2 (Picasa), service_groups2 (Google Groups) and service_mail (GMail).

 
精彩推荐
图片推荐