lightbulb_outline Please take our October 2018 developer survey. Start survey
added in API level 1

LoginFilter.UsernameFilterGMail

public static class LoginFilter.UsernameFilterGMail
extends LoginFilter

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


This filter rejects characters in the user name that are not compatible with GMail account creation. It prevents the user from entering user names with characters other than [a-zA-Z0-9.].

Summary

Public constructors

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

Public methods

boolean isAllowed(char c)

Returns whether or not we allow character c.

Inherited methods

Public constructors

LoginFilter.UsernameFilterGMail

added in API level 1
public LoginFilter.UsernameFilterGMail ()

LoginFilter.UsernameFilterGMail

added in API level 1
public LoginFilter.UsernameFilterGMail (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