to top
Android APIs
public static class


extends LoginFilter
   ↳ android.text.LoginFilter
     ↳ android.text.LoginFilter.UsernameFilterGMail

Class Overview

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.].


Public Constructors
LoginFilter.UsernameFilterGMail(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

public LoginFilter.UsernameFilterGMail ()

Added in API level 1

public LoginFilter.UsernameFilterGMail (boolean appendInvalid)

Added in API level 1

Public Methods

public boolean isAllowed (char c)

Added in API level 1

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