public static final class ContactsContract.Groups
extends Object
implements BaseColumns, ContactsContract.GroupsColumns, ContactsContract.SyncColumns
java.lang.Object | |
↳ | android.provider.ContactsContract.Groups |
组表的常量。 只支持每个帐户组。
Groups | |||
---|---|---|---|
long | _ID |
read-only | Row ID. Sync adapter should try to preserve row IDs during updates. In other words, it would be a really bad idea to delete and reinsert a group. A sync adapter should always do an update instead. |
String | DATA_SET |
read/write-once | 在该组所属的帐户中设置的数据。 这允许同一账户类型的多个同步适配器区分彼此的组数据。 的组合 这在默认情况下是空的,并且是完全可选的。 如果多个同步适配器针对相同的帐户类型和帐户名称输入不同的数据,则只需填充它。 它应该在组插入时设置,并且之后不会更改。 |
String | TITLE |
read/write | The display title of this group. |
String | NOTES |
read/write | Notes about the group. |
String | SYSTEM_ID |
read/write | The ID of this group if it is a System Group, i.e. a group that has a special meaning to the sync adapter, null otherwise. |
int | SUMMARY_COUNT |
read-only | The total number of Contacts that have ContactsContract.CommonDataKinds.GroupMembership in this group. Read-only value that is only present when querying CONTENT_SUMMARY_URI . |
int | SUMMARY_WITH_PHONES |
read-only | The total number of Contacts that have both ContactsContract.CommonDataKinds.GroupMembership in this group, and also have phone numbers. Read-only value that is only present when querying CONTENT_SUMMARY_URI . |
int | GROUP_VISIBLE |
read-only | Flag indicating if the contacts belonging to this group should be visible in any user interface. Allowed values: 0 and 1. |
int | DELETED |
read/write | The "deleted" flag: "0" by default, "1" if the row has been marked for deletion. When delete(Uri, String, String[]) is called on a group, it is marked for deletion. The sync adaptor deletes the group on the server and then calls ContactResolver.delete once more, this time setting the the CALLER_IS_SYNCADAPTER query parameter to finalize the data removal. |
int | SHOULD_SYNC |
read/write | Whether this group should be synced if the SYNC_EVERYTHING settings is false for this group's account. |
Constants |
|
---|---|
String |
CONTENT_ITEM_TYPE 单个组的MIME类型。 |
String |
CONTENT_TYPE 组的目录的MIME类型。 |
Inherited constants |
---|
From interface android.provider.BaseColumns
|
From interface android.provider.ContactsContract.GroupsColumns
|
From interface android.provider.ContactsContract.SyncColumns
|
From interface android.provider.ContactsContract.BaseSyncColumns
|
Fields |
|
---|---|
public static final Uri |
CONTENT_SUMMARY_URI 该表的content:// style URI与来自 |
public static final Uri |
CONTENT_URI 该表格的内容://样式URI |
Public methods |
|
---|---|
static EntityIterator |
newEntityIterator(Cursor cursor) |
Inherited methods |
|
---|---|
From class java.lang.Object
|
String CONTENT_ITEM_TYPE
单个组的MIME类型。
常量值:“vnd.android.cursor.item / group”
String CONTENT_TYPE
组的目录的MIME类型。
常量值:“vnd.android.cursor.dir / group”
Uri CONTENT_SUMMARY_URI
该表格的内容://样式URI与来自 ContactsContract.Data
详细信息数据结合 ContactsContract.Data
。
EntityIterator newEntityIterator (Cursor cursor)
Parameters | |
---|---|
cursor |
Cursor
|
Returns | |
---|---|
EntityIterator |