SpellCheckerSession.SpellCheckerSessionParams


public static class SpellCheckerSession.SpellCheckerSessionParams
extends Object

java.lang.Object
   ↳ android.view.textservice.SpellCheckerSession.SpellCheckerSessionParams


Parameters used to create a SpellCheckerSession.

Summary

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

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

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