Most visited

Recently visited

Added in API level 1

LoginFilter.UsernameFilterGeneric

public static class LoginFilter.UsernameFilterGeneric
extends LoginFilter

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


此筛选器会拒绝用户名中与Google登录不兼容的字符。 它比上述滤波器的限制性略小,因为它允许[a-zA-Z0-9 ._- +]。

Summary

Public constructors

LoginFilter.UsernameFilterGeneric()
LoginFilter.UsernameFilterGeneric(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.UsernameFilterGeneric

Added in API level 1
LoginFilter.UsernameFilterGeneric ()

LoginFilter.UsernameFilterGeneric

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

Parameters
appendInvalid boolean

Public methods

isAllowed

Added in API level 1
boolean isAllowed (char c)

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

Parameters
c char
Returns
boolean

Hooray!