Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static class

LoginFilter.UsernameFilterGeneric

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

Class Overview

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.
[Expand]
Inherited Methods
From class android.text.LoginFilter
From class java.lang.Object
From interface android.text.InputFilter

Public Constructors

public LoginFilter.UsernameFilterGeneric ()

Added in API level 1

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