Most visited

Recently visited

Added in API level 1

LoginFilter.UsernameFilterGMail

public static class LoginFilter.UsernameFilterGMail
extends LoginFilter

java.lang.Object
   ↳ android.text.LoginFilter
     ↳ android.text.LoginFilter.UsernameFilterGMail


此筛选器拒绝用户名中与GMail帐户创建不兼容的字符。 它可以防止用户输入除[a-zA-Z0-9。]以外的字符的用户名。

Summary

Public constructors

LoginFilter.UsernameFilterGMail()
LoginFilter.UsernameFilterGMail(boolean appendInvalid)

Public methods

boolean isAllowed(char c)

返回我们是否允许角色c。

Inherited methods

From class android.text.LoginFilter
From class java.lang.Object
From interface android.text.InputFilter

Public constructors

LoginFilter.UsernameFilterGMail

Added in API level 1
LoginFilter.UsernameFilterGMail ()

LoginFilter.UsernameFilterGMail

Added in API level 1
LoginFilter.UsernameFilterGMail (boolean appendInvalid)

Parameters
appendInvalid boolean

Public methods

isAllowed

Added in API level 1
boolean isAllowed (char c)

返回我们是否允许角色c。 子类必须重写此方法。

Parameters
c char
Returns
boolean

Hooray!