java.lang.Object | |
↳ | android.provider.UserDictionary.Words |
Contains the user defined words.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | APP_ID | The uid of the application that inserted the word. | |||||||||
String | CONTENT_ITEM_TYPE |
The MIME type of a
CONTENT_URI
sub-directory of a single word.
|
|||||||||
String | CONTENT_TYPE |
The MIME type of
CONTENT_URI
providing a directory of words.
|
|||||||||
String | DEFAULT_SORT_ORDER | Sort by descending order of frequency. | |||||||||
String | FREQUENCY | The frequency column. | |||||||||
String | LOCALE | The locale that this word belongs to. | |||||||||
int | LOCALE_TYPE_ALL |
This constant was deprecated
in API level 16.
Use
addWord(Context, String, int, String, Locale)
.
|
|||||||||
int | LOCALE_TYPE_CURRENT |
This constant was deprecated
in API level 16.
Use
addWord(Context, String, int, String, Locale)
.
|
|||||||||
String | SHORTCUT | An optional shortcut for this word. | |||||||||
String | WORD | The word column. | |||||||||
String | _ID |
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.provider.BaseColumns
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
CONTENT_URI | The content:// style URL for this table |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
This method was deprecated
in API level 16.
Please use
addWord(Context, String, int, String, Locale)
instead.
|
||||||||||
|
Adds a word to the dictionary, with the given frequency and the specified
locale type.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The uid of the application that inserted the word.
TYPE: INTEGER
The MIME type of a
CONTENT_URI
sub-directory of a single word.
The MIME type of
CONTENT_URI
providing a directory of words.
Sort by descending order of frequency.
The frequency column. A value between 1 and 255. Higher values imply higher frequency.
TYPE: INTEGER
The locale that this word belongs to. Null if it pertains to all locales. Locale is as defined by the string returned by Locale.toString().
TYPE: TEXT
This constant was deprecated
in API level 16.
Use
addWord(Context, String, int, String, Locale)
.
This constant was deprecated
in API level 16.
Use
addWord(Context, String, int, String, Locale)
.
An optional shortcut for this word. When the shortcut is typed, supporting IMEs should suggest the word in this row as an alternate spelling too.
The word column.
TYPE: TEXT
This method was deprecated
in API level 16.
Please use
addWord(Context, String, int, String, Locale)
instead.
Adds a word to the dictionary, with the given frequency and the specified specified locale type.
context | the current application context |
---|---|
word | the word to add to the dictionary. This should not be null or empty. |
localeType |
the locale type for this word. It should be one of
LOCALE_TYPE_ALL
or
LOCALE_TYPE_CURRENT
.
|
Adds a word to the dictionary, with the given frequency and the specified locale type.
context | the current application context |
---|---|
word | the word to add to the dictionary. This should not be null or empty. |
shortcut | 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 | the locale to insert the word for, or null to insert the word for all locales. |