共用方式為


ContactsContract.QuickContact.ShowQuickContact Method

Definition

Overloads

ShowQuickContact(Context, Rect, Uri, QuickContactMode, String[])

Trigger a dialog that lists the various methods of interacting with the requested Contacts entry.

ShowQuickContact(Context, Rect, Uri, String[], String)

Trigger a dialog that lists the various methods of interacting with the requested Contacts entry.

ShowQuickContact(Context, View, Uri, QuickContactMode, String[])

Trigger a dialog that lists the various methods of interacting with the requested Contacts entry.

ShowQuickContact(Context, View, Uri, String[], String)

Trigger a dialog that lists the various methods of interacting with the requested Contacts entry.

ShowQuickContact(Context, Rect, Uri, QuickContactMode, String[])

Trigger a dialog that lists the various methods of interacting with the requested Contacts entry.

[Android.Runtime.Register("showQuickContact", "(Landroid/content/Context;Landroid/graphics/Rect;Landroid/net/Uri;I[Ljava/lang/String;)V", "")]
public static void ShowQuickContact (Android.Content.Context? context, Android.Graphics.Rect? target, Android.Net.Uri? lookupUri, Android.Provider.QuickContactMode mode, string[]? excludeMimes);
[<Android.Runtime.Register("showQuickContact", "(Landroid/content/Context;Landroid/graphics/Rect;Landroid/net/Uri;I[Ljava/lang/String;)V", "")>]
static member ShowQuickContact : Android.Content.Context * Android.Graphics.Rect * Android.Net.Uri * Android.Provider.QuickContactMode * string[] -> unit

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 DisplayMetrics#density before calling.

lookupUri
Uri

A ContactsContract.Contacts#CONTENT_LOOKUP_URI style Uri 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 and PhoneLookup#ENTERPRISE_CONTENT_FILTER_URI.

mode
QuickContactMode

Any of #MODE_SMALL, #MODE_MEDIUM, or #MODE_LARGE, indicating the desired dialog size, when supported.

excludeMimes
String[]

Optional list of Data#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.

Attributes

Remarks

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.

Java documentation for android.provider.ContactsContract.QuickContact.showQuickContact(android.content.Context, android.graphics.Rect, android.net.Uri, int, java.lang.String[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ShowQuickContact(Context, Rect, Uri, String[], String)

Trigger a dialog that lists the various methods of interacting with the requested Contacts entry.

[Android.Runtime.Register("showQuickContact", "(Landroid/content/Context;Landroid/graphics/Rect;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=23)]
public static void ShowQuickContact (Android.Content.Context? context, Android.Graphics.Rect? target, Android.Net.Uri? lookupUri, string[]? excludeMimes, string? prioritizedMimeType);
[<Android.Runtime.Register("showQuickContact", "(Landroid/content/Context;Landroid/graphics/Rect;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=23)>]
static member ShowQuickContact : Android.Content.Context * Android.Graphics.Rect * Android.Net.Uri * string[] * string -> unit

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 DisplayMetrics#density before calling.

lookupUri
Uri

A ContactsContract.Contacts#CONTENT_LOOKUP_URI style Uri 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 and PhoneLookup#ENTERPRISE_CONTENT_FILTER_URI.

excludeMimes
String[]

Optional list of Data#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 CommonDataKinds.Phone#CONTENT_ITEM_TYPE can cause phone numbers to be displayed more prominently in QuickContacts.

Attributes

Remarks

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.

Java documentation for android.provider.ContactsContract.QuickContact.showQuickContact(android.content.Context, android.graphics.Rect, android.net.Uri, java.lang.String[], java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ShowQuickContact(Context, View, Uri, QuickContactMode, String[])

Trigger a dialog that lists the various methods of interacting with the requested Contacts entry.

[Android.Runtime.Register("showQuickContact", "(Landroid/content/Context;Landroid/view/View;Landroid/net/Uri;I[Ljava/lang/String;)V", "")]
public static void ShowQuickContact (Android.Content.Context? context, Android.Views.View? target, Android.Net.Uri? lookupUri, Android.Provider.QuickContactMode mode, string[]? excludeMimes);
[<Android.Runtime.Register("showQuickContact", "(Landroid/content/Context;Landroid/view/View;Landroid/net/Uri;I[Ljava/lang/String;)V", "")>]
static member ShowQuickContact : Android.Content.Context * Android.Views.View * Android.Net.Uri * Android.Provider.QuickContactMode * string[] -> unit

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 ContactsContract.Contacts#CONTENT_LOOKUP_URI style Uri 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 and PhoneLookup#ENTERPRISE_CONTENT_FILTER_URI.

mode
QuickContactMode

Any of #MODE_SMALL, #MODE_MEDIUM, or #MODE_LARGE, indicating the desired dialog size, when supported.

excludeMimes
String[]

Optional list of Data#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.

Attributes

Remarks

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.

Java documentation for android.provider.ContactsContract.QuickContact.showQuickContact(android.content.Context, android.view.View, android.net.Uri, int, java.lang.String[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ShowQuickContact(Context, View, Uri, String[], String)

Trigger a dialog that lists the various methods of interacting with the requested Contacts entry.

[Android.Runtime.Register("showQuickContact", "(Landroid/content/Context;Landroid/view/View;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=23)]
public static void ShowQuickContact (Android.Content.Context? context, Android.Views.View? target, Android.Net.Uri? lookupUri, string[]? excludeMimes, string? prioritizedMimeType);
[<Android.Runtime.Register("showQuickContact", "(Landroid/content/Context;Landroid/view/View;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=23)>]
static member ShowQuickContact : Android.Content.Context * Android.Views.View * Android.Net.Uri * string[] * string -> unit

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 ContactsContract.Contacts#CONTENT_LOOKUP_URI style Uri 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 and PhoneLookup#ENTERPRISE_CONTENT_FILTER_URI.

excludeMimes
String[]

Optional list of Data#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 CommonDataKinds.Phone#CONTENT_ITEM_TYPE can cause phone numbers to be displayed more prominently in QuickContacts.

Attributes

Remarks

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.

Java documentation for android.provider.ContactsContract.QuickContact.showQuickContact(android.content.Context, android.view.View, android.net.Uri, java.lang.String[], java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to