public static final class ContactsContract.Groups extends Object implements BaseColumns, ContactsContract.GroupsColumns, ContactsContract.SyncColumns
Groups | |||
---|---|---|---|
long | BaseColumns._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 | ContactsContract.GroupsColumns.DATA_SET |
read/write-once |
The data set within the account that this group belongs to. This allows
multiple sync adapters for the same account type to distinguish between
each others' group data. The combination of This is empty by default, and is completely optional. It only needs to be populated if multiple sync adapters are entering distinct data for the same account type and account name. It should be set at the time the group is inserted and never changed afterwards. |
String | ContactsContract.GroupsColumns.TITLE |
read/write | The display title of this group. |
String | ContactsContract.GroupsColumns.NOTES |
read/write | Notes about the group. |
String | ContactsContract.GroupsColumns.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 | ContactsContract.GroupsColumns.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 | ContactsContract.GroupsColumns.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 | ContactsContract.GroupsColumns.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 | ContactsContract.GroupsColumns.DELETED |
read/write | The "deleted" flag: "0" by default, "1" if the row has been marked
for deletion. When ContentResolver.delete(android.net.Uri, java.lang.String, java.lang.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 ContactsContract.CALLER_IS_SYNCADAPTER
query parameter to finalize the data removal. |
int | ContactsContract.GroupsColumns.SHOULD_SYNC |
read/write | Whether this group should be synced if the SYNC_EVERYTHING settings is false for this group's account. |
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_ITEM_TYPE
The MIME type of a single group.
|
static Uri |
CONTENT_SUMMARY_URI
The content:// style URI for this table joined with details data from
ContactsContract.Data . |
static String |
CONTENT_TYPE
The MIME type of a directory of groups.
|
static Uri |
CONTENT_URI
The content:// style URI for this table
|
_COUNT, _ID
ACCOUNT_TYPE_AND_DATA_SET, AUTO_ADD, DATA_SET, DELETED, FAVORITES, GROUP_IS_READ_ONLY, GROUP_VISIBLE, NOTES, PARAM_RETURN_GROUP_COUNT_PER_ACCOUNT, RES_PACKAGE, SHOULD_SYNC, SUMMARY_COUNT, SUMMARY_GROUP_COUNT_PER_ACCOUNT, SUMMARY_WITH_PHONES, SYSTEM_ID, TITLE, TITLE_RES
ACCOUNT_NAME, ACCOUNT_TYPE, DIRTY, SOURCE_ID, VERSION
SYNC1, SYNC2, SYNC3, SYNC4
public static final Uri CONTENT_URI
public static final Uri CONTENT_SUMMARY_URI
ContactsContract.Data
.public static final String CONTENT_TYPE
public static final String CONTENT_ITEM_TYPE
public static EntityIterator newEntityIterator(Cursor cursor)