Added in API level 1
Deprecated in API level 5

Phones


class Phones : BaseColumns, Contacts.PhonesColumns, Contacts.PeopleColumns
kotlin.Any
   ↳ android.provider.Contacts.Phones

This table stores phone numbers and a reference to the person that the contact method belongs to. Phone numbers are stored separately from other contact methods to make caller ID lookup more efficient.

Summary

Constants
static String

The MIME type of a CONTENT_URI subdirectory of a single phone.

static String

The MIME type of CONTENT_URI providing a directory of phones.

static String

The default sort order for this table

static String

The ID of the person this phone number is assigned to.

Inherited constants
Public methods
static CharSequence!
getDisplayLabel(context: Context!, type: Int, label: CharSequence!, labelArray: Array<CharSequence!>!)

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

Properties
static Uri!

The content:// style URL for filtering phone numbers

static Uri!

The content:// style URL for this table

Constants

CONTENT_ITEM_TYPE

Added in API level 1
static val CONTENT_ITEM_TYPE: String

Deprecated: see android.provider.ContactsContract

The MIME type of a CONTENT_URI subdirectory of a single phone.

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

CONTENT_TYPE

Added in API level 1
static val CONTENT_TYPE: String

Deprecated: see android.provider.ContactsContract

The MIME type of CONTENT_URI providing a directory of phones.

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

DEFAULT_SORT_ORDER

Added in API level 1
static val DEFAULT_SORT_ORDER: String

Deprecated: see android.provider.ContactsContract

The default sort order for this table

Value: "name ASC"

PERSON_ID

Added in API level 1
static val PERSON_ID: String

Deprecated: see android.provider.ContactsContract

The ID of the person this phone number is assigned to.

Type: INTEGER (long)

Value: "person"

Public methods

getDisplayLabel

Added in API level 1
static fun getDisplayLabel(
    context: Context!,
    type: Int,
    label: CharSequence!,
    labelArray: Array<CharSequence!>!
): CharSequence!

Deprecated: see android.provider.ContactsContract

getDisplayLabel

Added in API level 1
static fun getDisplayLabel(
    context: Context!,
    type: Int,
    label: CharSequence!
): CharSequence!

Deprecated: see android.provider.ContactsContract

Properties

CONTENT_FILTER_URL

Added in API level 1
static val CONTENT_FILTER_URL: Uri!

Deprecated: see android.provider.ContactsContract

The content:// style URL for filtering phone numbers

CONTENT_URI

Added in API level 1
static val CONTENT_URI: Uri!

Deprecated: see android.provider.ContactsContract

The content:// style URL for this table