TextServicesManager.NewSpellCheckerSession Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
NewSpellCheckerSession(SpellCheckerSession+SpellCheckerSessionParams, IExecutor, SpellCheckerSession+ISpellCheckerSessionListener) | |
NewSpellCheckerSession(Bundle, Locale, SpellCheckerSession+ISpellCheckerSessionListener, Boolean) |
Get a spell checker session for the specified spell checker |
NewSpellCheckerSession(SpellCheckerSession+SpellCheckerSessionParams, IExecutor, SpellCheckerSession+ISpellCheckerSessionListener)
[Android.Runtime.Register("newSpellCheckerSession", "(Landroid/view/textservice/SpellCheckerSession$SpellCheckerSessionParams;Ljava/util/concurrent/Executor;Landroid/view/textservice/SpellCheckerSession$SpellCheckerSessionListener;)Landroid/view/textservice/SpellCheckerSession;", "", ApiSince=31)]
public Android.Views.TextService.SpellCheckerSession? NewSpellCheckerSession (Android.Views.TextService.SpellCheckerSession.SpellCheckerSessionParams params, Java.Util.Concurrent.IExecutor executor, Android.Views.TextService.SpellCheckerSession.ISpellCheckerSessionListener listener);
[<Android.Runtime.Register("newSpellCheckerSession", "(Landroid/view/textservice/SpellCheckerSession$SpellCheckerSessionParams;Ljava/util/concurrent/Executor;Landroid/view/textservice/SpellCheckerSession$SpellCheckerSessionListener;)Landroid/view/textservice/SpellCheckerSession;", "", ApiSince=31)>]
member this.NewSpellCheckerSession : Android.Views.TextService.SpellCheckerSession.SpellCheckerSessionParams * Java.Util.Concurrent.IExecutor * Android.Views.TextService.SpellCheckerSession.ISpellCheckerSessionListener -> Android.Views.TextService.SpellCheckerSession
Parameters
- executor
- IExecutor
Returns
- Attributes
Applies to
NewSpellCheckerSession(Bundle, Locale, SpellCheckerSession+ISpellCheckerSessionListener, Boolean)
Get a spell checker session for the specified spell checker
[Android.Runtime.Register("newSpellCheckerSession", "(Landroid/os/Bundle;Ljava/util/Locale;Landroid/view/textservice/SpellCheckerSession$SpellCheckerSessionListener;Z)Landroid/view/textservice/SpellCheckerSession;", "")]
public Android.Views.TextService.SpellCheckerSession? NewSpellCheckerSession (Android.OS.Bundle? bundle, Java.Util.Locale? locale, Android.Views.TextService.SpellCheckerSession.ISpellCheckerSessionListener listener, bool referToSpellCheckerLanguageSettings);
[<Android.Runtime.Register("newSpellCheckerSession", "(Landroid/os/Bundle;Ljava/util/Locale;Landroid/view/textservice/SpellCheckerSession$SpellCheckerSessionListener;Z)Landroid/view/textservice/SpellCheckerSession;", "")>]
member this.NewSpellCheckerSession : Android.OS.Bundle * Java.Util.Locale * Android.Views.TextService.SpellCheckerSession.ISpellCheckerSessionListener * bool -> Android.Views.TextService.SpellCheckerSession
Parameters
- bundle
- Bundle
- locale
- Locale
the locale for the spell checker. If locale
is null and
referToSpellCheckerLanguageSettings is true, the locale specified in Settings will be
returned. If locale
is not null and referToSpellCheckerLanguageSettings is true,
the locale specified in Settings will be returned only when it is same as locale
.
Exceptionally, when referToSpellCheckerLanguageSettings is true and locale
is
only language (e.g. "en"), the specified locale in Settings (e.g. "en_US") will be
selected.
a spell checker session lister for getting results from a spell checker.
- referToSpellCheckerLanguageSettings
- Boolean
if true, the session for one of enabled languages in settings will be returned.
Returns
- Attributes
Remarks
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.