UserDictionary.Words.AddWord Method

Definition

Overloads

AddWord(Context, String, Int32, LocaleType)
Obsolete.

Adds a word to the dictionary, with the given frequency and the specified specified locale type.

AddWord(Context, String, Int32, String, Locale)

Adds a word to the dictionary, with the given frequency and the specified locale type.

AddWord(Context, String, Int32, LocaleType)

Caution

deprecated

Adds a word to the dictionary, with the given frequency and the specified specified locale type.

[Android.Runtime.Register("addWord", "(Landroid/content/Context;Ljava/lang/String;II)V", "")]
[System.Obsolete("deprecated")]
public static void AddWord (Android.Content.Context? context, string? word, int frequency, Android.Provider.LocaleType localeType);
[<Android.Runtime.Register("addWord", "(Landroid/content/Context;Ljava/lang/String;II)V", "")>]
[<System.Obsolete("deprecated")>]
static member AddWord : Android.Content.Context * string * int * Android.Provider.LocaleType -> unit

Parameters

context
Context

the current application context

word
String

the word to add to the dictionary. This should not be null or empty.

frequency
Int32
localeType
LocaleType

the locale type for this word. It should be one of #LOCALE_TYPE_ALL or #LOCALE_TYPE_CURRENT.

Attributes

Remarks

Adds a word to the dictionary, with the given frequency and the specified specified locale type.

This member is deprecated. Please use #addWord(Context, String, int, String, Locale) instead.

Java documentation for android.provider.UserDictionary.Words.addWord(android.content.Context, java.lang.String, int, int).

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

AddWord(Context, String, Int32, String, Locale)

Adds a word to the dictionary, with the given frequency and the specified locale type.

[Android.Runtime.Register("addWord", "(Landroid/content/Context;Ljava/lang/String;ILjava/lang/String;Ljava/util/Locale;)V", "")]
public static void AddWord (Android.Content.Context? context, string? word, int frequency, string? shortcut, Java.Util.Locale? locale);
[<Android.Runtime.Register("addWord", "(Landroid/content/Context;Ljava/lang/String;ILjava/lang/String;Ljava/util/Locale;)V", "")>]
static member AddWord : Android.Content.Context * string * int * string * Java.Util.Locale -> unit

Parameters

context
Context

the current application context

word
String

the word to add to the dictionary. This should not be null or empty.

frequency
Int32
shortcut
String

optional shortcut spelling for this word. When the shortcut is typed, the word may be suggested by applications that support it. May be null.

locale
Locale

the locale to insert the word for, or null to insert the word for all locales.

Attributes

Remarks

Adds a word to the dictionary, with the given frequency and the specified locale type.

Java documentation for android.provider.UserDictionary.Words.addWord(android.content.Context, java.lang.String, int, java.lang.String, java.util.Locale).

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