Android APIs
public static final class

ContactsContract.QuickContact

extends Object
java.lang.Object
   ↳ android.provider.ContactsContract.QuickContact

Class Overview

Helper methods to display QuickContact dialogs that allow users to pivot on a specific Contacts entry.

Summary

Constants
int MODE_LARGE Large QuickContact mode, includes actions and larger, card-like summary of the Contacts entry being shown.
int MODE_MEDIUM Medium QuickContact mode, includes actions and light summary describing the Contacts entry being shown.
int MODE_SMALL Small QuickContact mode, usually presented with minimal actions.
Public Constructors
ContactsContract.QuickContact()
Public Methods
static void showQuickContact(Context context, View target, Uri lookupUri, int mode, String[] excludeMimes)
Trigger a dialog that lists the various methods of interacting with the requested Contacts entry.
static void showQuickContact(Context context, Rect target, Uri lookupUri, int mode, String[] excludeMimes)
Trigger a dialog that lists the various methods of interacting with the requested Contacts entry.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int MODE_LARGE

Added in API level 5

Large QuickContact mode, includes actions and larger, card-like summary of the Contacts entry being shown. This may include detailed information, such as a photo.

Constant Value: 3 (0x00000003)

public static final int MODE_MEDIUM

Added in API level 5

Medium QuickContact mode, includes actions and light summary describing the Contacts entry being shown. This may include social status and presence details.

Constant Value: 2 (0x00000002)

public static final int MODE_SMALL

Added in API level 5

Small QuickContact mode, usually presented with minimal actions.

Constant Value: 1 (0x00000001)

Public Constructors

public ContactsContract.QuickContact ()

Added in API level 5

Public Methods

public static void showQuickContact (Context context, View target, Uri lookupUri, int mode, String[] excludeMimes)

Added in API level 5

Trigger a dialog that lists the various methods of interacting with the requested Contacts entry. This may be based on available ContactsContract.Data rows under that contact, and may also include social status and presence details.

Parameters
context The parent Context that may be used as the parent for this dialog.
target Specific View 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.
lookupUri A CONTENT_LOOKUP_URI style Uri that describes a specific contact to feature in this dialog.
mode Any of MODE_SMALL, MODE_MEDIUM, or MODE_LARGE, indicating the desired dialog size, when supported.
excludeMimes Optional list of MIMETYPE 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.

public static void showQuickContact (Context context, Rect target, Uri lookupUri, int mode, String[] excludeMimes)

Added in API level 5

Trigger a dialog that lists the various methods of interacting with the requested Contacts entry. This may be based on available ContactsContract.Data rows under that contact, and may also include social status and presence details.

Parameters
context The parent Context that may be used as the parent for this dialog.
target Specific Rect 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. If you are running at a non-native density, you need to manually adjust using density before calling.
lookupUri A CONTENT_LOOKUP_URI style Uri that describes a specific contact to feature in this dialog.
mode Any of MODE_SMALL, MODE_MEDIUM, or MODE_LARGE, indicating the desired dialog size, when supported.
excludeMimes Optional list of MIMETYPE 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.