Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 11

ContactsContract.DisplayNameSources

public static interface ContactsContract.DisplayNameSources

android.provider.ContactsContract.DisplayNameSources


Types of data used to produce the display name for a contact. In the order of increasing priority: EMAIL, PHONE, ORGANIZATION, NICKNAME, STRUCTURED_PHONETIC_NAME, STRUCTURED_NAME.

Summary

Constants

int EMAIL

int NICKNAME

int ORGANIZATION

int PHONE

int STRUCTURED_NAME

int STRUCTURED_PHONETIC_NAME

Display name comes from a structured name that only has phonetic components.

int UNDEFINED

Constants

EMAIL

added in API level 11
public static final int EMAIL

Constant Value: 10 (0x0000000a)

NICKNAME

added in API level 11
public static final int NICKNAME

Constant Value: 35 (0x00000023)

ORGANIZATION

added in API level 11
public static final int ORGANIZATION

Constant Value: 30 (0x0000001e)

PHONE

added in API level 11
public static final int PHONE

Constant Value: 20 (0x00000014)

STRUCTURED_NAME

added in API level 11
public static final int STRUCTURED_NAME

Constant Value: 40 (0x00000028)

STRUCTURED_PHONETIC_NAME

added in API level 23
public static final int STRUCTURED_PHONETIC_NAME

Display name comes from a structured name that only has phonetic components.

Constant Value: 37 (0x00000025)

UNDEFINED

added in API level 11
public static final int UNDEFINED

Constant Value: 0 (0x00000000)