java.lang.Object | |
↳ | com.android.contacts.model.ContactsSource |
Known Direct Subclasses |
Known Indirect Subclasses |
Internal structure that represents constraints and styles for a specific data source, such as the various data types they support, including details on how those types should be rendered and edited.
In the future this may be inflated from XML defined by a data source.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ContactsSource.DataKind | Description of a specific data type, usually marked by a unique
MIMETYPE . |
||||||||||
ContactsSource.EditField | Description of a user-editable field on a ContactsSource.DataKind row, such as
NUMBER . |
||||||||||
ContactsSource.EditType | Description of a specific "type" or "label" of a ContactsSource.DataKind row,
such as TYPE_WORK . |
||||||||||
ContactsSource.StringInflater | Generic method of inflating a given Cursor into a user-readable CharSequence. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | LEVEL_CONSTRAINTS | ||||||||||
int | LEVEL_MIMETYPES | ||||||||||
int | LEVEL_NONE | ||||||||||
int | LEVEL_SUMMARY |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
accountType | The ACCOUNT_TYPE these constraints apply to. |
||||||||||
iconRes | |||||||||||
readOnly | |||||||||||
resPackageName | Package that resources should be loaded from, either defined through an
Account or for matching against Data#RES_PACKAGE. |
||||||||||
summaryResPackageName | |||||||||||
titleRes |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add given
ContactsSource.DataKind to list of those provided by this source. | |||||||||||
Ensure that this
ContactsSource has been inflated to the
requested level. | |||||||||||
Find the
ContactsSource.DataKind for a specific MIME-type, if it's handled by
this data source. | |||||||||||
Return list of
ContactsSource.DataKind supported, sorted by
weight . | |||||||||||
Invalidate any cache for this
ContactsSource , removing all
inflated data. | |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Perform the actual inflation to the requested level.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Package that resources should be loaded from, either defined through an
Account
or for matching against Data#RES_PACKAGE.
Add given ContactsSource.DataKind
to list of those provided by this source.
Ensure that this ContactsSource
has been inflated to the
requested level.
Find the ContactsSource.DataKind
for a specific MIME-type, if it's handled by
this data source. If you may need a fallback ContactsSource.DataKind
, use
getKindOrFallback(String, String, Context, int)
.
Return list of ContactsSource.DataKind
supported, sorted by
weight
.
Invalidate any cache for this ContactsSource
, removing all
inflated data. Calling ensureInflated(Context, int)
will
populate again from scratch.
Perform the actual inflation to the requested level. Called by
ensureInflated(Context, int)
when inflation is needed.