public static class UserDictionary.Words extends Object implements BaseColumns
Modifier and Type | Field and Description |
---|---|
static String |
_ID |
static String |
APP_ID
The uid of the application that inserted the word.
|
static String |
CONTENT_ITEM_TYPE
The MIME type of a
CONTENT_URI sub-directory of a single word. |
static String |
CONTENT_TYPE
The MIME type of
CONTENT_URI providing a directory of words. |
static Uri |
CONTENT_URI
The content:// style URL for this table
|
static String |
DEFAULT_SORT_ORDER
Sort by descending order of frequency.
|
static String |
FREQUENCY
The frequency column.
|
static String |
LOCALE
The locale that this word belongs to.
|
static int |
LOCALE_TYPE_ALL
Deprecated.
|
static int |
LOCALE_TYPE_CURRENT
Deprecated.
|
static String |
SHORTCUT
An optional shortcut for this word.
|
static String |
WORD
The word column.
|
_COUNT
Constructor and Description |
---|
Words() |
Modifier and Type | Method and Description |
---|---|
static void |
addWord(Context context,
String word,
int frequency,
int localeType)
Deprecated.
Please use
addWord(Context, String, int, String, Locale) instead. |
static void |
addWord(Context context,
String word,
int frequency,
String shortcut,
Locale locale)
Adds a word to the dictionary, with the given frequency and the specified
locale type.
|
public static final Uri CONTENT_URI
public static final String CONTENT_TYPE
CONTENT_URI
providing a directory of words.public static final String CONTENT_ITEM_TYPE
CONTENT_URI
sub-directory of a single word.public static final String _ID
public static final String WORD
TYPE: TEXT
public static final String FREQUENCY
TYPE: INTEGER
public static final String LOCALE
TYPE: TEXT
public static final String APP_ID
TYPE: INTEGER
public static final String SHORTCUT
@Deprecated public static final int LOCALE_TYPE_ALL
addWord(Context, String, int, String, Locale)
.@Deprecated public static final int LOCALE_TYPE_CURRENT
addWord(Context, String, int, String, Locale)
.public static final String DEFAULT_SORT_ORDER
@Deprecated public static void addWord(Context context, String word, int frequency, int localeType)
addWord(Context, String, int, String, Locale)
instead.context
- the current application contextword
- 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
.public static void addWord(Context context, String word, int frequency, String shortcut, Locale locale)
context
- the current application contextword
- 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.