# ContactsContract.QuickContact

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

# QuickContact

*** ** * ** ***

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

```
class QuickContact
```

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

Helper methods to display QuickContact dialogs that display all the information belonging to a specific[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry.

## Summary

|                                                                                                                                                                                                                               Constants                                                                                                                                                                                                                               ||
|----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACTION_QUICK_CONTACT](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#ACTION_QUICK_CONTACT:kotlin.String) Action used to launch the system contacts application and bring up a QuickContact dialog for the provided[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry. |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EXTRA_EXCLUDE_MIMES](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#EXTRA_EXCLUDE_MIMES:kotlin.String) Extra used to indicate a list of specific MIME-types to exclude and not display in the QuickContacts dialog.                                                                                                           |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EXTRA_MODE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#EXTRA_MODE:kotlin.String) Extra used to specify size of QuickContacts.                                                                                                                                                                                             |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EXTRA_PRIORITIZED_MIMETYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#EXTRA_PRIORITIZED_MIMETYPE:kotlin.String) Extra used to specify which mimetype should be prioritized in the QuickContacts UI.                                                                                                                      |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [MODE_LARGE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#MODE_LARGE:kotlin.Int) Large QuickContact mode, includes actions and larger, card-like summary of the[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry being shown.                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [MODE_MEDIUM](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#MODE_MEDIUM:kotlin.Int) Medium QuickContact mode, includes actions and light summary describing the[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry being shown.                                        |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [MODE_SMALL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#MODE_SMALL:kotlin.Int) Small QuickContact mode, usually presented with minimal actions.                                                                                                                                                                            |

|                                                            Public constructors                                                             ||
|-----------------------------------------------------------------------------------------------------------------------------------------|---|
| [QuickContact](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#QuickContact())`()` <br /> |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ||
|------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [showQuickContact](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#showQuickContact(android.content.Context,%20android.graphics.Rect,%20android.net.Uri,%20kotlin.Int,%20kotlin.Array))`(`context:` `[Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)!`, `target:` `[Rect](https://developer.android.com/reference/kotlin/android/graphics/Rect.html#)!`, `lookupUri:` `[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!`, `mode:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `excludeMimes:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>!`)` Trigger a dialog that lists the various methods of interacting with the requested[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry.                          |
| static[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [showQuickContact](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#showQuickContact(android.content.Context,%20android.graphics.Rect,%20android.net.Uri,%20kotlin.Array,%20kotlin.String))`(`context:` `[Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)!`, `target:` `[Rect](https://developer.android.com/reference/kotlin/android/graphics/Rect.html#)!`, `lookupUri:` `[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!`, `excludeMimes:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>!`, `prioritizedMimeType:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Trigger a dialog that lists the various methods of interacting with the requested[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry. |
| static[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [showQuickContact](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#showQuickContact(android.content.Context,%20android.view.View,%20android.net.Uri,%20kotlin.Int,%20kotlin.Array))`(`context:` `[Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)!`, `target:` `[View](https://developer.android.com/reference/kotlin/android/view/View.html#)!`, `lookupUri:` `[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!`, `mode:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `excludeMimes:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>!`)` Trigger a dialog that lists the various methods of interacting with the requested[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry.                                  |
| static[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [showQuickContact](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#showQuickContact(android.content.Context,%20android.view.View,%20android.net.Uri,%20kotlin.Array,%20kotlin.String))`(`context:` `[Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)!`, `target:` `[View](https://developer.android.com/reference/kotlin/android/view/View.html#)!`, `lookupUri:` `[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!`, `excludeMimes:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>!`, `prioritizedMimeType:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Trigger a dialog that lists the various methods of interacting with the requested[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry.         |

## Constants

### ACTION_QUICK_CONTACT

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

```
static val ACTION_QUICK_CONTACT: String
```

Action used to launch the system contacts application and bring up a QuickContact dialog for the provided[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry.  

    Value: "android.provider.action.QUICK_CONTACT"

### EXTRA_EXCLUDE_MIMES

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

```
static val EXTRA_EXCLUDE_MIMES: String
```

Extra used to indicate a list of specific MIME-types to exclude and not display in the QuickContacts dialog. Stored as a[String](https://developer.android.com/reference/kotlin/java/lang/String.html#)array.  

    Value: "android.provider.extra.EXCLUDE_MIMES"

### EXTRA_MODE

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

```
static val EXTRA_MODE: String
```

Extra used to specify size of QuickContacts. Not all implementations of QuickContacts will respect this extra's value. One of[MODE_SMALL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#MODE_SMALL:kotlin.Int),[MODE_MEDIUM](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#MODE_MEDIUM:kotlin.Int), or[MODE_LARGE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#MODE_LARGE:kotlin.Int).  

    Value: "android.provider.extra.MODE"

### EXTRA_PRIORITIZED_MIMETYPE

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

```
static val EXTRA_PRIORITIZED_MIMETYPE: String
```

Extra used to specify which mimetype should be prioritized in the QuickContacts UI. For example, passing the value[CommonDataKinds.Phone#CONTENT_ITEM_TYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Phone#CONTENT_ITEM_TYPE:kotlin.String)can cause phone numbers to be displayed more prominently in QuickContacts.  

    Value: "android.provider.extra.PRIORITIZED_MIMETYPE"

### MODE_LARGE

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

```
static val MODE_LARGE: Int
```

Large QuickContact mode, includes actions and larger, card-like summary of the[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry being shown. This may include detailed information, such as a photo.  

    Value: 3

### MODE_MEDIUM

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

```
static val MODE_MEDIUM: Int
```

Medium QuickContact mode, includes actions and light summary describing the[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry being shown. This may include social status and presence details.  

    Value: 2

### MODE_SMALL

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

```
static val MODE_SMALL: Int
```

Small QuickContact mode, usually presented with minimal actions.  

    Value: 1

## Public constructors

### QuickContact

```
QuickContact()
```

## Public methods

### showQuickContact

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

```
static fun showQuickContact(
    context: Context!, 
    target: Rect!, 
    lookupUri: Uri!, 
    mode: Int, 
    excludeMimes: Array<String!>!
): Unit
```

Trigger a dialog that lists the various methods of interacting with the requested[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry. This may be based on available[ContactsContract.Data](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Data)rows under that contact, and may also include social status and presence details.

|                                                                                                                                                                                                                                                                                                                                                                                                                                    Parameters                                                                                                                                                                                                                                                                                                                                                                                                                                    ||
|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `context`      | [Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)!:The parent[Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)that may be used as the parent for this dialog.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `target`       | [Rect](https://developer.android.com/reference/kotlin/android/graphics/Rect.html#)!:Specific[Rect](https://developer.android.com/reference/kotlin/android/graphics/Rect.html#)that this dialog should be centered around, in screen coordinates. In particular, if the dialog has a "callout" arrow, it will be pointed and centered around this[Rect](https://developer.android.com/reference/kotlin/android/graphics/Rect.html#). If you are running at a non-native density, you need to manually adjust using[DisplayMetrics.density](https://developer.android.com/reference/kotlin/android/util/DisplayMetrics.html#density:kotlin.Float)before calling.                                                                                                                                                                                                   |
| `lookupUri`    | [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!:A[ContactsContract.Contacts.CONTENT_LOOKUP_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts#CONTENT_LOOKUP_URI:android.net.Uri)style[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)that describes a specific contact to feature in this dialog. A managed profile lookup uri is supported here, see[CommonDataKinds.Email#ENTERPRISE_CONTENT_LOOKUP_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Email#ENTERPRISE_CONTENT_LOOKUP_URI:android.net.Uri)and[PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PhoneLookup#ENTERPRISE_CONTENT_FILTER_URI:android.net.Uri). |
| `mode`         | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Any of[MODE_SMALL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#MODE_SMALL:kotlin.Int),[MODE_MEDIUM](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#MODE_MEDIUM:kotlin.Int), or[MODE_LARGE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#MODE_LARGE:kotlin.Int), indicating the desired dialog size, when supported.                                                                                                                                                                                                                                                                                                                 |
| `excludeMimes` | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!:Optional list of[Data.MIMETYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String)MIME-types to exclude when showing this dialog. For example, when already viewing the contact details card, this can be used to omit the details entry from the dialog.                                                                                                                                                                                                                                                                                                                                                                 |

### showQuickContact

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

```
static fun showQuickContact(
    context: Context!, 
    target: Rect!, 
    lookupUri: Uri!, 
    excludeMimes: Array<String!>!, 
    prioritizedMimeType: String!
): Unit
```

Trigger a dialog that lists the various methods of interacting with the requested[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry. This may be based on available[ContactsContract.Data](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Data)rows under that contact, and may also include social status and presence details.

|                                                                                                                                                                                                                                                                                                                                                                                                                                       Parameters                                                                                                                                                                                                                                                                                                                                                                                                                                        ||
|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `context`             | [Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)!:The parent[Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)that may be used as the parent for this dialog.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `target`              | [Rect](https://developer.android.com/reference/kotlin/android/graphics/Rect.html#)!:Specific[Rect](https://developer.android.com/reference/kotlin/android/graphics/Rect.html#)that this dialog should be centered around, in screen coordinates. In particular, if the dialog has a "callout" arrow, it will be pointed and centered around this[Rect](https://developer.android.com/reference/kotlin/android/graphics/Rect.html#). If you are running at a non-native density, you need to manually adjust using[DisplayMetrics.density](https://developer.android.com/reference/kotlin/android/util/DisplayMetrics.html#density:kotlin.Float)before calling.                                                                                                                                                                                                   |
| `lookupUri`           | [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!:A[ContactsContract.Contacts.CONTENT_LOOKUP_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts#CONTENT_LOOKUP_URI:android.net.Uri)style[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)that describes a specific contact to feature in this dialog. A managed profile lookup uri is supported here, see[CommonDataKinds.Email#ENTERPRISE_CONTENT_LOOKUP_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Email#ENTERPRISE_CONTENT_LOOKUP_URI:android.net.Uri)and[PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PhoneLookup#ENTERPRISE_CONTENT_FILTER_URI:android.net.Uri). |
| `excludeMimes`        | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!:Optional list of[Data.MIMETYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String)MIME-types to exclude when showing this dialog. For example, when already viewing the contact details card, this can be used to omit the details entry from the dialog.                                                                                                                                                                                                                                                                                                                                                                 |
| `prioritizedMimeType` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:This mimetype should be prioritized in the QuickContacts UI. For example, passing the value[CommonDataKinds.Phone#CONTENT_ITEM_TYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Phone#CONTENT_ITEM_TYPE:kotlin.String)can cause phone numbers to be displayed more prominently in QuickContacts.                                                                                                                                                                                                                                                                                                                                                                                                                         |

### showQuickContact

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

```
static fun showQuickContact(
    context: Context!, 
    target: View!, 
    lookupUri: Uri!, 
    mode: Int, 
    excludeMimes: Array<String!>!
): Unit
```

Trigger a dialog that lists the various methods of interacting with the requested[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry. This may be based on available[ContactsContract.Data](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Data)rows under that contact, and may also include social status and presence details.

|                                                                                                                                                                                                                                                                                                                                                                                                                                    Parameters                                                                                                                                                                                                                                                                                                                                                                                                                                    ||
|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `context`      | [Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)!:The parent[Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)that may be used as the parent for this dialog.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `target`       | [View](https://developer.android.com/reference/kotlin/android/view/View.html#)!:Specific[View](https://developer.android.com/reference/kotlin/android/view/View.html#)from your layout that this dialog should be centered around. In particular, if the dialog has a "callout" arrow, it will be pointed and centered around this[View](https://developer.android.com/reference/kotlin/android/view/View.html#).                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `lookupUri`    | [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!:A[ContactsContract.Contacts.CONTENT_LOOKUP_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts#CONTENT_LOOKUP_URI:android.net.Uri)style[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)that describes a specific contact to feature in this dialog. A managed profile lookup uri is supported here, see[CommonDataKinds.Email#ENTERPRISE_CONTENT_LOOKUP_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Email#ENTERPRISE_CONTENT_LOOKUP_URI:android.net.Uri)and[PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PhoneLookup#ENTERPRISE_CONTENT_FILTER_URI:android.net.Uri). |
| `mode`         | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Any of[MODE_SMALL](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#MODE_SMALL:kotlin.Int),[MODE_MEDIUM](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#MODE_MEDIUM:kotlin.Int), or[MODE_LARGE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.QuickContact#MODE_LARGE:kotlin.Int), indicating the desired dialog size, when supported.                                                                                                                                                                                                                                                                                                                 |
| `excludeMimes` | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!:Optional list of[Data.MIMETYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String)MIME-types to exclude when showing this dialog. For example, when already viewing the contact details card, this can be used to omit the details entry from the dialog.                                                                                                                                                                                                                                                                                                                                                                 |

### showQuickContact

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

```
static fun showQuickContact(
    context: Context!, 
    target: View!, 
    lookupUri: Uri!, 
    excludeMimes: Array<String!>!, 
    prioritizedMimeType: String!
): Unit
```

Trigger a dialog that lists the various methods of interacting with the requested[Contacts](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts)entry. This may be based on available[ContactsContract.Data](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Data)rows under that contact, and may also include social status and presence details.

|                                                                                                                                                                                                                                                                                                                                                                                                                                       Parameters                                                                                                                                                                                                                                                                                                                                                                                                                                        ||
|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `context`             | [Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)!:The parent[Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)that may be used as the parent for this dialog.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `target`              | [View](https://developer.android.com/reference/kotlin/android/view/View.html#)!:Specific[View](https://developer.android.com/reference/kotlin/android/view/View.html#)from your layout that this dialog should be centered around. In particular, if the dialog has a "callout" arrow, it will be pointed and centered around this[View](https://developer.android.com/reference/kotlin/android/view/View.html#).                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `lookupUri`           | [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)!:A[ContactsContract.Contacts.CONTENT_LOOKUP_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.Contacts#CONTENT_LOOKUP_URI:android.net.Uri)style[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)that describes a specific contact to feature in this dialog. A managed profile lookup uri is supported here, see[CommonDataKinds.Email#ENTERPRISE_CONTENT_LOOKUP_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Email#ENTERPRISE_CONTENT_LOOKUP_URI:android.net.Uri)and[PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.PhoneLookup#ENTERPRISE_CONTENT_FILTER_URI:android.net.Uri). |
| `excludeMimes`        | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!:Optional list of[Data.MIMETYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.DataColumns#MIMETYPE:kotlin.String)MIME-types to exclude when showing this dialog. For example, when already viewing the contact details card, this can be used to omit the details entry from the dialog.                                                                                                                                                                                                                                                                                                                                                                 |
| `prioritizedMimeType` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:This mimetype should be prioritized in the QuickContacts UI. For example, passing the value[CommonDataKinds.Phone#CONTENT_ITEM_TYPE](https://developer.android.com/reference/kotlin/android/provider/ContactsContract.CommonDataKinds.Phone#CONTENT_ITEM_TYPE:kotlin.String)can cause phone numbers to be displayed more prominently in QuickContacts.                                                                                                                                                                                                                                                                                                                                                                                                                         |