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 SpellCheckerSessionParams

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 SuggestionsInfo attributes that the spell checker can set in SuggestionsInfo it returns.

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

Added in API level 31
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.

getLocale

Added in API level 31
public Locale getLocale ()

Returns the locale in which the spell checker should operate.

Returns
Locale This value may be null.

shouldReferToSpellCheckerLanguageSettings

Added in API level 31
public boolean shouldReferToSpellCheckerLanguageSettings ()

Returns true if the user's spell checker language settings should be used to determine the spell checker locale.

Returns
boolean