# Contacts.ContactMethods

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)

# ContactMethods

*** ** * ** ***

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

```
class ContactMethods : BaseColumns, Contacts.ContactMethodsColumns, Contacts.PeopleColumns
```

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

*** ** * ** ***

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

This table stores all non-phone contact methods and a reference to the person that the contact method belongs to.

## Summary

|                                                                                                                                                                                                                                                                             Constants                                                                                                                                                                                                                                                                             ||
|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_EMAIL_ITEM_TYPE](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_EMAIL_ITEM_TYPE:kotlin.String) The MIME type of a[CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_URI:android.net.Uri)sub-directory of a single[Contacts.KIND_EMAIL](https://developer.android.com/reference/kotlin/android/provider/Contacts#KIND_EMAIL:kotlin.Int)entry.         |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_EMAIL_TYPE](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_EMAIL_TYPE:kotlin.String) The MIME type of a[CONTENT_EMAIL_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_EMAIL_URI:android.net.Uri)sub-directory of multiple[Contacts.KIND_EMAIL](https://developer.android.com/reference/kotlin/android/provider/Contacts#KIND_EMAIL:kotlin.Int)entries.     |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_IM_ITEM_TYPE](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_IM_ITEM_TYPE:kotlin.String) The MIME type of a[CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_URI:android.net.Uri)sub-directory of a single[Contacts.KIND_IM](https://developer.android.com/reference/kotlin/android/provider/Contacts#KIND_IM:kotlin.Int)entry.                     |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_POSTAL_ITEM_TYPE](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_POSTAL_ITEM_TYPE:kotlin.String) The MIME type of a[CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_URI:android.net.Uri)sub-directory of a single[Contacts.KIND_POSTAL](https://developer.android.com/reference/kotlin/android/provider/Contacts#KIND_POSTAL:kotlin.Int)entry.     |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_POSTAL_TYPE](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_POSTAL_TYPE:kotlin.String) The MIME type of a[CONTENT_EMAIL_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_EMAIL_URI:android.net.Uri)sub-directory of multiple[Contacts.KIND_POSTAL](https://developer.android.com/reference/kotlin/android/provider/Contacts#KIND_POSTAL:kotlin.Int)entries. |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CONTENT_TYPE](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_TYPE:kotlin.String) The MIME type of[CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_URI:android.net.Uri)providing a directory of                                                                                                                                                             |
| 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.ContactMethods#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) | [PERSON_ID](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#PERSON_ID:kotlin.String) The ID of the person this contact method is assigned to.                                                                                                                                                                                                                                                                                     |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [POSTAL_LOCATION_LATITUDE](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#POSTAL_LOCATION_LATITUDE:kotlin.String) The column with latitude data for postal locations                                                                                                                                                                                                                                                             |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [POSTAL_LOCATION_LONGITUDE](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#POSTAL_LOCATION_LONGITUDE:kotlin.String) The column with longitude data for postal locations                                                                                                                                                                                                                                                          |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [PROTOCOL_AIM](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#PROTOCOL_AIM:kotlin.Int) The predefined IM protocol types.                                                                                                                                                                                                                                                                                                         |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [PROTOCOL_GOOGLE_TALK](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#PROTOCOL_GOOGLE_TALK:kotlin.Int) <br />                                                                                                                                                                                                                                                                                                                    |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [PROTOCOL_ICQ](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#PROTOCOL_ICQ:kotlin.Int) <br />                                                                                                                                                                                                                                                                                                                                    |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [PROTOCOL_JABBER](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#PROTOCOL_JABBER:kotlin.Int) <br />                                                                                                                                                                                                                                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [PROTOCOL_MSN](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#PROTOCOL_MSN:kotlin.Int) <br />                                                                                                                                                                                                                                                                                                                                    |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [PROTOCOL_QQ](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#PROTOCOL_QQ:kotlin.Int) <br />                                                                                                                                                                                                                                                                                                                                      |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [PROTOCOL_SKYPE](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#PROTOCOL_SKYPE:kotlin.Int) <br />                                                                                                                                                                                                                                                                                                                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [PROTOCOL_YAHOO](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#PROTOCOL_YAHOO:kotlin.Int) <br />                                                                                                                                                                                                                                                                                                                                |

| Inherited constants ||
|---|---|
| From class[ContactMethodsColumns](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethodsColumns) |----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [AUX_DATA](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethodsColumns#AUX_DATA:kotlin.String) <br /> Auxiliary data for the contact method. Type: TEXT <br />                                                                    | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATA](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethodsColumns#DATA:kotlin.String) <br /> The data for the contact method. Type: TEXT <br />                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ISPRIMARY](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethodsColumns#ISPRIMARY:kotlin.String) <br /> Whether this is the primary organization Type: INTEGER (if set, non-0 means true) <br />                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [KIND](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethodsColumns#KIND:kotlin.String) <br /> The kind of the the contact method. For example, email address, postal address, etc. Type: INTEGER (one of the values below) <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [LABEL](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethodsColumns#LABEL:kotlin.String) <br /> The user defined label for the the contact method. Type: TEXT <br />                                                              | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [TYPE](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethodsColumns#TYPE:kotlin.String) <br /> The type of the contact method, must be one of the types below. Type: INTEGER (one of the values below) <br />                      | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [TYPE_CUSTOM](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethodsColumns#TYPE_CUSTOM:kotlin.Int) <br />                                                                                                                          | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [TYPE_HOME](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethodsColumns#TYPE_HOME:kotlin.Int) <br />                                                                                                                              | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [TYPE_OTHER](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethodsColumns#TYPE_OTHER:kotlin.Int) <br />                                                                                                                            | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [TYPE_WORK](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethodsColumns#TYPE_WORK:kotlin.Int) <br />                                                                                                                              | ||
| From class[PeopleColumns](https://developer.android.com/reference/kotlin/android/provider/Contacts.PeopleColumns) |----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CUSTOM_RINGTONE](https://developer.android.com/reference/kotlin/android/provider/Contacts.PeopleColumns#CUSTOM_RINGTONE:kotlin.String) <br /> A custom ringtone associated with a person. Not always present. Type: TEXT (URI to the ringtone) <br />                                                                              | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DISPLAY_NAME](https://developer.android.com/reference/kotlin/android/provider/Contacts.PeopleColumns#DISPLAY_NAME:kotlin.String) <br /> The display name. If name is not null name, else if number is not null number, else if email is not null email. Type: TEXT <br />                                                          | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [LAST_TIME_CONTACTED](https://developer.android.com/reference/kotlin/android/provider/Contacts.PeopleColumns#LAST_TIME_CONTACTED:kotlin.String) <br /> The last time a person was contacted. Type: INTEGER <br />                                                                                                                   | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [NAME](https://developer.android.com/reference/kotlin/android/provider/Contacts.PeopleColumns#NAME:kotlin.String) <br /> The person's 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.PeopleColumns#NOTES:kotlin.String) <br /> Notes about the person. Type: TEXT <br />                                                                                                                                                                | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [PHONETIC_NAME](https://developer.android.com/reference/kotlin/android/provider/Contacts.PeopleColumns#PHONETIC_NAME:kotlin.String) <br /> Phonetic equivalent of the person's name, in a locale-dependent character set (e.g. hiragana for Japanese). Used for pronunciation and/or collation in some languages. Type: TEXT <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [PHOTO_VERSION](https://developer.android.com/reference/kotlin/android/provider/Contacts.PeopleColumns#PHOTO_VERSION:kotlin.String) <br /> The server version of the photo Type: TEXT (the version number portion of the photo URI) <br />                                                                                          | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SEND_TO_VOICEMAIL](https://developer.android.com/reference/kotlin/android/provider/Contacts.PeopleColumns#SEND_TO_VOICEMAIL:kotlin.String) <br /> Whether the person should always be sent to voicemail. Not always present. Type: INTEGER (0 for false, 1 for true) <br />                                                        | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [STARRED](https://developer.android.com/reference/kotlin/android/provider/Contacts.PeopleColumns#STARRED:kotlin.String) <br /> Is the contact starred? Type: INTEGER (boolean) <br />                                                                                                                                               | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [TIMES_CONTACTED](https://developer.android.com/reference/kotlin/android/provider/Contacts.PeopleColumns#TIMES_CONTACTED:kotlin.String) <br /> The number of times a person has been contacted Type: INTEGER <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 />         | ||

|                                                                                                                                                                                                                                                                                                                                                                                 Public methods                                                                                                                                                                                                                                                                                                                                                                                  ||
|------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                         | [addPostalLocation](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#addPostalLocation(android.content.Context,%20kotlin.Long,%20kotlin.Double,%20kotlin.Double))`(`context:` `[Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)!`, `postalId:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `latitude:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `longitude:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`)` Add a longitude and latitude location to a postal address. |
| static[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)!                    | [decodeImProtocol](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#decodeImProtocol(kotlin.String))`(`encodedString:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br />                                                                                                                                                                                                                                                                                                                                                                                                                |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!              | [encodeCustomImProtocol](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#encodeCustomImProtocol(kotlin.String))`(`protocolString:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br />                                                                                                                                                                                                                                                                                                                                                                                                   |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!              | [encodePredefinedImProtocol](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#encodePredefinedImProtocol(kotlin.Int))`(`protocol:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br />                                                                                                                                                                                                                                                                                                                                                                                                           |
| static[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)! | [getDisplayLabel](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#getDisplayLabel(android.content.Context,%20kotlin.Int,%20kotlin.Int,%20kotlin.CharSequence))`(`context:` `[Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)!`, `kind:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `type:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `label:` `[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!`)` <br />                                                             |

|                                                                                                                                             Properties                                                                                                                                             ||
|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [CONTENT_EMAIL_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_EMAIL_URI:android.net.Uri) The content:// style URL for sub-directory of e-mail addresses. |
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_URI:android.net.Uri) The content:// style URL for this table                                     |

## Constants

### CONTENT_EMAIL_ITEM_TYPE

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

```
static val CONTENT_EMAIL_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.ContactMethods#CONTENT_URI:android.net.Uri)sub-directory of a single[Contacts.KIND_EMAIL](https://developer.android.com/reference/kotlin/android/provider/Contacts#KIND_EMAIL:kotlin.Int)entry.  

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

### CONTENT_EMAIL_TYPE

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

```
static val CONTENT_EMAIL_TYPE: String
```

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

The MIME type of a[CONTENT_EMAIL_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_EMAIL_URI:android.net.Uri)sub-directory of multiple[Contacts.KIND_EMAIL](https://developer.android.com/reference/kotlin/android/provider/Contacts#KIND_EMAIL:kotlin.Int)entries.  

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

### CONTENT_IM_ITEM_TYPE

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

```
static val CONTENT_IM_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.ContactMethods#CONTENT_URI:android.net.Uri)sub-directory of a single[Contacts.KIND_IM](https://developer.android.com/reference/kotlin/android/provider/Contacts#KIND_IM:kotlin.Int)entry.  

    Value: "vnd.android.cursor.item/jabber-im"

### CONTENT_POSTAL_ITEM_TYPE

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

```
static val CONTENT_POSTAL_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.ContactMethods#CONTENT_URI:android.net.Uri)sub-directory of a single[Contacts.KIND_POSTAL](https://developer.android.com/reference/kotlin/android/provider/Contacts#KIND_POSTAL:kotlin.Int)entry.  

    Value: "vnd.android.cursor.item/postal-address"

### CONTENT_POSTAL_TYPE

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

```
static val CONTENT_POSTAL_TYPE: String
```

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

The MIME type of a[CONTENT_EMAIL_URI](https://developer.android.com/reference/kotlin/android/provider/Contacts.ContactMethods#CONTENT_EMAIL_URI:android.net.Uri)sub-directory of multiple[Contacts.KIND_POSTAL](https://developer.android.com/reference/kotlin/android/provider/Contacts#KIND_POSTAL:kotlin.Int)entries.  

    Value: "vnd.android.cursor.dir/postal-address"

### 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)phones.*

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

    Value: "vnd.android.cursor.dir/contact-methods"

### 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: "name ASC"

### 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 ID of the person this contact method is assigned to.

Type: INTEGER (long)  

    Value: "person"

### POSTAL_LOCATION_LATITUDE

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

```
static val POSTAL_LOCATION_LATITUDE: String
```

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

The column with latitude data for postal locations

Type: REAL  

    Value: "data"

### POSTAL_LOCATION_LONGITUDE

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

```
static val POSTAL_LOCATION_LONGITUDE: String
```

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

The column with longitude data for postal locations

Type: REAL  

    Value: "aux_data"

### PROTOCOL_AIM

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

```
static val PROTOCOL_AIM: Int
```

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

The predefined IM protocol types. The protocol can either be non-present, one of these types, or a free-form string. These cases are encoded in the AUX_DATA column as: - null - pre: - custom:  

    Value: 0

### PROTOCOL_GOOGLE_TALK

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

```
static val PROTOCOL_GOOGLE_TALK: Int
```

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

    Value: 5

### PROTOCOL_ICQ

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

```
static val PROTOCOL_ICQ: Int
```

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

    Value: 6

### PROTOCOL_JABBER

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

```
static val PROTOCOL_JABBER: Int
```

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

    Value: 7

### PROTOCOL_MSN

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

```
static val PROTOCOL_MSN: Int
```

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

    Value: 1

### PROTOCOL_QQ

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

```
static val PROTOCOL_QQ: Int
```

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

    Value: 4

### PROTOCOL_SKYPE

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

```
static val PROTOCOL_SKYPE: Int
```

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

    Value: 3

### PROTOCOL_YAHOO

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

```
static val PROTOCOL_YAHOO: Int
```

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

    Value: 2

## Public methods

### addPostalLocation

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

```
fun addPostalLocation(
    context: Context!, 
    postalId: Long, 
    latitude: Double, 
    longitude: Double
): Unit
```

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

Add a longitude and latitude location to a postal address.

|                                                                     Parameters                                                                      ||
|-------------|----------------------------------------------------------------------------------------------------------------------------------------|
| `context`   | [Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)!:the context to use when updating the database |
| `postalId`  | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):the address to update                                     |
| `latitude`  | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):the latitude for the address                          |
| `longitude` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):the longitude for the address                         |

### decodeImProtocol

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

```
static fun decodeImProtocol(encodedString: String!): Any!
```

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

### encodeCustomImProtocol

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

```
static fun encodeCustomImProtocol(protocolString: String!): String!
```

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

### encodePredefinedImProtocol

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

```
static fun encodePredefinedImProtocol(protocol: Int): String!
```

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

### getDisplayLabel

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

```
static fun getDisplayLabel(
    context: Context!, 
    kind: Int, 
    type: Int, 
    label: CharSequence!
): CharSequence!
```

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

## Properties

### CONTENT_EMAIL_URI

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

```
static val CONTENT_EMAIL_URI: Uri!
```

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

The content:// style URL for sub-directory of e-mail addresses.  

### 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