# LoginFilter.PasswordFilterGMail

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# PasswordFilterGMail

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/text/LoginFilter.PasswordFilterGMail "View this page in Java")  

```
open class PasswordFilterGMail : LoginFilter
```

|---|---|----------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                  |||
| ↳ | [android.text.LoginFilter](https://developer.android.com/reference/kotlin/android/text/LoginFilter)                                             ||
|   | ↳ | [android.text.LoginFilter.PasswordFilterGMail](https://developer.android.com/reference/kotlin/android/text/LoginFilter.PasswordFilterGMail#) |

*** ** * ** ***

| **This class was deprecated in API level 30.**
|
| Do not handle a user's Google password. Refer to[Google Help](https://support.google.com/accounts/answer/32040)for password restriction information.

This filter is compatible with GMail passwords which restricts characters to the Latin-1 (ISO8859-1) char set.

## Summary

|                                                                                                                            Public constructors                                                                                                                            ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [PasswordFilterGMail](https://developer.android.com/reference/kotlin/android/text/LoginFilter.PasswordFilterGMail#PasswordFilterGMail())`()` <br />                                                                                                                    |
| [PasswordFilterGMail](https://developer.android.com/reference/kotlin/android/text/LoginFilter.PasswordFilterGMail#PasswordFilterGMail(kotlin.Boolean))`(`appendInvalid:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> |

|                                                                                                                                                    Public methods                                                                                                                                                     ||
|----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isAllowed](https://developer.android.com/reference/kotlin/android/text/LoginFilter.PasswordFilterGMail#isAllowed(kotlin.Char))`(`c:` `[Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html)`)` <br /> |

| Inherited functions ||
|---|---|
| From class[LoginFilter](https://developer.android.com/reference/kotlin/android/text/LoginFilter) |------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)! | [filter](https://developer.android.com/reference/kotlin/android/text/LoginFilter#filter(kotlin.CharSequence,%20kotlin.Int,%20kotlin.Int,%20android.text.Spanned,%20kotlin.Int,%20kotlin.Int))`(`source:` `[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!`, `start:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `end:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `dest:` `[Spanned](https://developer.android.com/reference/kotlin/android/text/Spanned)!`, `dstart:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `dend:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> This method is called when the buffer is going to replace the range`dstart ... dend`of`dest`with the new text from the range`start ... end`of`source`. Returns the CharSequence that we want placed there instead, including an empty string if appropriate, or`null`to accept the original replacement. Be careful to not to reject 0-length replacements, as this is what happens when you delete text. <br /> | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                   | [onInvalidCharacter](https://developer.android.com/reference/kotlin/android/text/LoginFilter#onInvalidCharacter(kotlin.Char))`(`c:` `[Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html)`)` <br /> Called whenever we encounter an invalid character. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                   | [onStart](https://developer.android.com/reference/kotlin/android/text/LoginFilter#onStart())`()` <br /> Called when we start processing filter. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                   | [onStop](https://developer.android.com/reference/kotlin/android/text/LoginFilter#onStop())`()` <br /> Called when we're done processing filter <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | ||

## Public constructors

### PasswordFilterGMail

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
PasswordFilterGMail()
```  

### PasswordFilterGMail

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
PasswordFilterGMail(appendInvalid: Boolean)
```

## Public methods

### isAllowed

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isAllowed(c: Char): Boolean
```

**Deprecated:** *Deprecated in Java.*