# Contacts.GroupMembership

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# GroupMembership

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/provider/Contacts.GroupMembership "View this page in Java")  

```
class GroupMembership : BaseColumns, Contacts.GroupsColumns
```

|---|----------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                         ||
| ↳ | [android.provider.Contacts.GroupMembership](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#) |

*** ** * ** ***

| **This class was deprecated in API level 5.**
|
| see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)

## Summary

|                                                                                                                                                                                                             Constants                                                                                                                                                                                                             ||
|----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_DIRECTORY](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#CONTENT_DIRECTORY:kotlin.String) The directory twig for this sub-table                                                                                                                                                       |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_ITEM_TYPE](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#CONTENT_ITEM_TYPE:kotlin.String) The MIME type of a[CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#CONTENT_URI:android.net.Uri)subdirectory of a single person group. |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_TYPE](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#CONTENT_TYPE:kotlin.String) The MIME type of[CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#CONTENT_URI:android.net.Uri)providing a directory of all person groups.        |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DEFAULT_SORT_ORDER](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#DEFAULT_SORT_ORDER:kotlin.String) The default sort order for this table                                                                                                                                                     |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [GROUP_ID](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#GROUP_ID:kotlin.String) The row id of the accounts group.                                                                                                                                                                             |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [GROUP_SYNC_ACCOUNT](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#GROUP_SYNC_ACCOUNT:kotlin.String) The account of the group.                                                                                                                                                                 |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [GROUP_SYNC_ACCOUNT_TYPE](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#GROUP_SYNC_ACCOUNT_TYPE:kotlin.String) The account type of the group.                                                                                                                                                  |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [GROUP_SYNC_ID](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#GROUP_SYNC_ID:kotlin.String) The sync id of the group.                                                                                                                                                                           |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [PERSON_ID](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#PERSON_ID:kotlin.String) The row id of the person.                                                                                                                                                                                   |

| Inherited constants ||
|---|---|
| From class[GroupsColumns](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupsColumns) |----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [NAME](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupsColumns#NAME:kotlin.String) <br /> The group name. Type: TEXT <br />                                                                                                                   | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [NOTES](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupsColumns#NOTES:kotlin.String) <br /> Notes about the group. Type: TEXT <br />                                                                                                          | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SHOULD_SYNC](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupsColumns#SHOULD_SYNC:kotlin.String) <br /> Whether this group should be synced if the SYNC_EVERYTHING settings is false for this group's account. Type: INTEGER (boolean) <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYSTEM_ID](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupsColumns#SYSTEM_ID:kotlin.String) <br /> The ID of this group if it is a System Group, null otherwise. Type: TEXT <br />                                                           | ||
| From class[BaseColumns](https://developer.android.com/reference/kotlin/android/provider/BaseColumns) |----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_COUNT](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_COUNT:kotlin.String) <br /> The count of rows in a directory. Type: INTEGER <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) <br /> The unique ID for a row. Type: INTEGER (long) <br />         | ||

|                                                                                                                               Properties                                                                                                                                ||
|------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#CONTENT_URI:android.net.Uri) The content:// style URL for this table         |
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [RAW_CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#RAW_CONTENT_URI:android.net.Uri) The content:// style URL for this table |

## Constants

### CONTENT_DIRECTORY

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CONTENT_DIRECTORY: String
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The directory twig for this sub-table  

    Value: "groupmembership"

### CONTENT_ITEM_TYPE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CONTENT_ITEM_TYPE: String
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The MIME type of a[CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#CONTENT_URI:android.net.Uri)subdirectory of a single person group.  

    Value: "vnd.android.cursor.item/contactsgroupmembership"

### CONTENT_TYPE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CONTENT_TYPE: String
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The MIME type of[CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.GroupMembership#CONTENT_URI:android.net.Uri)providing a directory of all person groups.  

    Value: "vnd.android.cursor.dir/contactsgroupmembership"

### DEFAULT_SORT_ORDER

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val DEFAULT_SORT_ORDER: String
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The default sort order for this table  

    Value: "group_id ASC"

### GROUP_ID

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val GROUP_ID: String
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The row id of the accounts group.

Type: TEXT  

    Value: "group_id"

### GROUP_SYNC_ACCOUNT

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val GROUP_SYNC_ACCOUNT: String
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The account of the group.

Type: TEXT  

    Value: "group_sync_account"

### GROUP_SYNC_ACCOUNT_TYPE

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val GROUP_SYNC_ACCOUNT_TYPE: String
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The account type of the group.

Type: TEXT  

    Value: "group_sync_account_type"

### GROUP_SYNC_ID

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val GROUP_SYNC_ID: String
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The sync id of the group.

Type: TEXT  

    Value: "group_sync_id"

### PERSON_ID

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val PERSON_ID: String
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The row id of the person.

Type: TEXT  

    Value: "person"

## Properties

### CONTENT_URI

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CONTENT_URI: Uri!
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The content:// style URL for this table  

### RAW_CONTENT_URI

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val RAW_CONTENT_URI: Uri!
```

**Deprecated:** *see[android.provider.ContactsContract](https://developer.android.com/reference/kotlin/android/provider/ContactsContract)*

The content:// style URL for this table