lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey
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

Public constructors

LoginFilter.UsernameFilterGeneric

added in API level 1
public LoginFilter.UsernameFilterGeneric ()

LoginFilter.UsernameFilterGeneric

added in API level 1
public LoginFilter.UsernameFilterGeneric (boolean appendInvalid)

Parameters
appendInvalid boolean

Public methods

isAllowed

added in API level 1
public boolean isAllowed (char c)

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

Parameters
c char

Returns
boolean