支持哪些功能通过Android的谷歌帐户的认证? [英] What features are supported by Android's Google accounts authenticator?

查看:125
本文介绍了支持哪些功能通过Android的谷歌帐户的认证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的<一个href="http://developer.android.com/reference/android/accounts/AccountManager.html#hasFeatures%28android.accounts.Account,%20java.lang.String%5B%5D,%20android.accounts.AccountManagerCallback%3Cjava.lang.Boolean%3E,%20android.os.Handler%29">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_&LT; SERVICE_ code_name&GT; 。使用<一个href="http://web.archive.org/web/20120107132009/http://ruscoe.net/google/google-account-service-names/"相对=nofollow>服务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).

这篇关于支持哪些功能通过Android的谷歌帐户的认证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆