Added in API level 31

SpellCheckerSessionParams


open class SpellCheckerSessionParams
kotlin.Any
   ↳ android.view.textservice.SpellCheckerSession.SpellCheckerSessionParams

Parameters used to create a SpellCheckerSession.

Summary

Nested classes

Builder of SpellCheckerSessionParams.

Public methods
open Bundle

Returns a bundle containing extra parameters for the spell checker.

open Locale?

Returns the locale in which the spell checker should operate.

open Int

Returns a bitmask of SuggestionsInfo attributes that the spell checker can set in SuggestionsInfo it returns.

open Boolean

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

Public methods

getExtras

Added in API level 31
open fun getExtras(): Bundle

Returns a bundle containing extra parameters for the spell checker.

This bundle can be used to pass implementation-specific parameters to the android.service.textservice.SpellCheckerService implementation.

Return
Bundle This value cannot be null.

getLocale

Added in API level 31
open fun getLocale(): Locale?

Returns the locale in which the spell checker should operate.

Return
Locale? This value may be null.

shouldReferToSpellCheckerLanguageSettings

Added in API level 31
open fun shouldReferToSpellCheckerLanguageSettings(): Boolean

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