Language

SpellCheckerSession.SpellCheckerSessionParams.Builder.SetShouldReferToSpellCheckerLanguageSettings Method

Definition

Sets whether or not the user's spell checker language settings should be used to determine spell checker locale.

[Android.Runtime.Register("setShouldReferToSpellCheckerLanguageSettings", "(Z)Landroid/view/textservice/SpellCheckerSession$SpellCheckerSessionParams$Builder;", "", ApiSince=31)]
public Android.Views.TextService.SpellCheckerSession.SpellCheckerSessionParams.Builder SetShouldReferToSpellCheckerLanguageSettings(bool shouldReferToSpellCheckerLanguageSettings);
[<Android.Runtime.Register("setShouldReferToSpellCheckerLanguageSettings", "(Z)Landroid/view/textservice/SpellCheckerSession$SpellCheckerSessionParams$Builder;", "", ApiSince=31)>]
member this.SetShouldReferToSpellCheckerLanguageSettings : bool -> Android.Views.TextService.SpellCheckerSession.SpellCheckerSessionParams.Builder

Parameters

shouldReferToSpellCheckerLanguageSettings
Boolean

true to select the spell checker locale from the user's language settings; false to use the requested locale without that setting. The default is false.

Returns

This builder.

Attributes

Remarks

Sets whether or not the user's spell checker language settings should be used to determine spell checker locale.

When this option is enabled, session creation uses the subtype selected in the user's spell checker settings. A null locale adds no language restriction. A non-null locale must have the same language as the selected subtype; the implementation compares the language, not the region or variant. For example, a requested language of "en" can use the selected "en_US" subtype. Session creation returns null if spell checking is disabled, no subtype is selected, or the languages do not match.

When this option is disabled, set a non-null locale before calling Build().

Android reference for android.view.textservice.SpellCheckerSession.SpellCheckerSessionParams.Builder.setShouldReferToSpellCheckerLanguageSettings.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to