public static final class ContactsContract.QuickContact
extends Object
java.lang.Object | |
↳ | android.provider.ContactsContract.QuickContact |
显示QuickContact对话框的辅助方法,显示属于特定 Contacts
条目的所有信息。
Constants |
|
---|---|
String |
ACTION_QUICK_CONTACT 用于启动系统联系人应用程序的操作,并为所提供的 |
String |
EXTRA_EXCLUDE_MIMES Extra用于指示要排除的特定MIME类型的列表,并且不显示在QuickContacts对话框中。 |
String |
EXTRA_MODE 额外用于指定QuickContacts的大小。 |
String |
EXTRA_PRIORITIZED_MIMETYPE 额外用于指定在QuickContacts UI中应优先考虑哪种mimetype。 |
int |
MODE_LARGE 大型QuickContact模式,包括所显示的 |
int |
MODE_MEDIUM 中等QuickContact模式,包括描述所显示的 |
int |
MODE_SMALL 小型QuickContact模式,通常以最少的操作呈现。 |
Public constructors |
|
---|---|
ContactsContract.QuickContact() |
Public methods |
|
---|---|
static void |
showQuickContact(Context context, View target, Uri lookupUri, String[] excludeMimes, String prioritizedMimeType) 触发一个对话框,列出与请求的 |
static void |
showQuickContact(Context context, Rect target, Uri lookupUri, int mode, String[] excludeMimes) 触发一个对话框,列出与请求的 |
static void |
showQuickContact(Context context, View target, Uri lookupUri, int mode, String[] excludeMimes) 触发一个对话框,列出与请求的 |
static void |
showQuickContact(Context context, Rect target, Uri lookupUri, String[] excludeMimes, String prioritizedMimeType) 触发一个对话框,列出与请求的 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
String ACTION_QUICK_CONTACT
用于启动系统联系人应用程序的操作,并为提供的 Contacts
条目提供QuickContact对话框。
常量值:“android.provider.action.QUICK_CONTACT”
String EXTRA_EXCLUDE_MIMES
Extra用于指示要排除的特定MIME类型的列表,并且不显示在QuickContacts对话框中。 存储为String
阵列。
常量值:“android.provider.extra.EXCLUDE_MIMES”
String EXTRA_MODE
额外用于指定QuickContacts的大小。 并非所有的QuickContacts实现都会尊重这个额外的价值。 一个MODE_SMALL
, MODE_MEDIUM
,或MODE_LARGE
。
常量值:“android.provider.extra.MODE”
String EXTRA_PRIORITIZED_MIMETYPE
额外用于指定在QuickContacts UI中应优先考虑哪种mimetype。 例如,传递值CONTENT_ITEM_TYPE
可能会导致电话号码在QuickContacts中显示得更加突出。
常量值:“android.provider.extra.PRIORITIZED_MIMETYPE”
int MODE_LARGE
大型QuickContact模式,包括所显示的Contacts
条目的动作和更大的卡片式摘要。 这可能包括详细信息,例如照片。
常量值:3(0x00000003)
int MODE_MEDIUM
中等QuickContact模式,包括描述显示的Contacts
条目的操作和指示灯摘要。 这可能包括社交状态和状态详情。
常量值:2(0x00000002)
void showQuickContact (Context context, View target, Uri lookupUri, String[] excludeMimes, String prioritizedMimeType)
触发一个对话框,列出与请求的Contacts
条目进行交互的各种方法。 这可能基于该联系人下可用的ContactsContract.Data
行,还可能包含社交状态和状态详细信息。
Parameters | |
---|---|
context |
Context : The parent Context that may be used as the parent for this dialog. |
target |
View : 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 |
Uri : A CONTENT_LOOKUP_URI style Uri that describes a specific contact to feature in this dialog. A work lookup uri is supported here, see ENTERPRISE_CONTENT_LOOKUP_URI and ENTERPRISE_CONTENT_FILTER_URI . |
excludeMimes |
String : 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. |
prioritizedMimeType |
String : This mimetype should be prioritized in the QuickContacts UI. For example, passing the value CONTENT_ITEM_TYPE can cause phone numbers to be displayed more prominently in QuickContacts. |
void showQuickContact (Context context, Rect target, Uri lookupUri, int mode, String[] excludeMimes)
触发一个对话框,列出与请求的Contacts
条目进行交互的各种方法。 这可能基于该联系人下可用的ContactsContract.Data
行,并且还可能包含社交状态和状态详细信息。
Parameters | |
---|---|
context |
Context : The parent Context that may be used as the parent for this dialog. |
target |
Rect : 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 |
Uri : A CONTENT_LOOKUP_URI style Uri that describes a specific contact to feature in this dialog. A work lookup uri is supported here, see ENTERPRISE_CONTENT_LOOKUP_URI and ENTERPRISE_CONTENT_FILTER_URI . |
mode |
int : Any of MODE_SMALL , MODE_MEDIUM , or MODE_LARGE , indicating the desired dialog size, when supported. |
excludeMimes |
String : 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. |
void showQuickContact (Context context, View target, Uri lookupUri, int mode, String[] excludeMimes)
触发一个对话框,列出与请求的Contacts
条目进行交互的各种方法。 这可能基于该联系人下可用的ContactsContract.Data
行,并且还可能包含社交状态和状态详细信息。
Parameters | |
---|---|
context |
Context : The parent Context that may be used as the parent for this dialog. |
target |
View : 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 |
Uri : A CONTENT_LOOKUP_URI style Uri that describes a specific contact to feature in this dialog. A work lookup uri is supported here, see ENTERPRISE_CONTENT_LOOKUP_URI and ENTERPRISE_CONTENT_FILTER_URI . |
mode |
int : Any of MODE_SMALL , MODE_MEDIUM , or MODE_LARGE , indicating the desired dialog size, when supported. |
excludeMimes |
String : 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. |
void showQuickContact (Context context, Rect target, Uri lookupUri, String[] excludeMimes, String prioritizedMimeType)
触发一个对话框,列出与请求的Contacts
条目进行交互的各种方法。 这可能基于该联系人下可用的ContactsContract.Data
行,还可能包含社交状态和状态详情。
Parameters | |
---|---|
context |
Context : The parent Context that may be used as the parent for this dialog. |
target |
Rect : 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 |
Uri : A CONTENT_LOOKUP_URI style Uri that describes a specific contact to feature in this dialog. A work lookup uri is supported here, see ENTERPRISE_CONTENT_LOOKUP_URI and ENTERPRISE_CONTENT_FILTER_URI . |
excludeMimes |
String : 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. |
prioritizedMimeType |
String : This mimetype should be prioritized in the QuickContacts UI. For example, passing the value CONTENT_ITEM_TYPE can cause phone numbers to be displayed more prominently in QuickContacts. |