SpellCheckerSession.SpellCheckerSessionParams
public
static
class
SpellCheckerSession.SpellCheckerSessionParams
extends Object
| java.lang.Object | |
| ↳ | android.view.textservice.SpellCheckerSession.SpellCheckerSessionParams |
Parameters used to create a SpellCheckerSession.
Summary
Nested classes | |
|---|---|
class |
SpellCheckerSession.SpellCheckerSessionParams.Builder
Builder of |
Public methods | |
|---|---|
Bundle
|
getExtras()
Returns a bundle containing extra parameters for the spell checker. |
Locale
|
getLocale()
Returns the locale in which the spell checker should operate. |
int
|
getSupportedAttributes()
Returns a bitmask of |
boolean
|
shouldReferToSpellCheckerLanguageSettings()
Returns true if the user's spell checker language settings should be used to determine the spell checker locale. |
Inherited methods | |
|---|---|
Public methods
getExtras
public Bundle getExtras ()
Returns a bundle containing extra parameters for the spell checker.
This bundle can be used to pass implementation-specific parameters to the
SpellCheckerService implementation.
| Returns | |
|---|---|
Bundle |
This value cannot be null. |
See also:
getLocale
public Locale getLocale ()
Returns the locale in which the spell checker should operate.
| Returns | |
|---|---|
Locale |
This value may be null. |
See also:
getSupportedAttributes
public int getSupportedAttributes ()
Returns a bitmask of SuggestionsInfo attributes that the spell checker can set
in SuggestionsInfo it returns.
| Returns | |
|---|---|
int |
Value is either 0 or a combination of the following:
|
shouldReferToSpellCheckerLanguageSettings
public boolean shouldReferToSpellCheckerLanguageSettings ()
Returns true if the user's spell checker language settings should be used to determine the spell checker locale.
| Returns | |
|---|---|
boolean |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-02-13 UTC.