Skip to content

Most visited

Recently visited

navigation
Added in API level 1

LoginFilter.UsernameFilterGeneric

public static class LoginFilter.UsernameFilterGeneric
extends LoginFilter

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


This filter rejects characters in the user name that are not compatible with Google login. It is slightly less restrictive than the above filter in that it allows [a-zA-Z0-9._-+].

Summary

Public constructors

LoginFilter.UsernameFilterGeneric()
LoginFilter.UsernameFilterGeneric(boolean appendInvalid)

Public methods

boolean isAllowed(char c)

Returns whether or not we allow character 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)

Returns whether or not we allow character c. Subclasses must override this method.

Parameters
c char
Returns
boolean
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.