ContactsContract.QuickContact.ShowQuickContact Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ShowQuickContact(Context, Rect, Uri, QuickContactMode, String[]) |
Trigger a dialog that lists the various methods of interacting with
the requested |
| ShowQuickContact(Context, Rect, Uri, String[], String) |
Trigger a dialog that lists the various methods of interacting with
the requested |
| ShowQuickContact(Context, View, Uri, QuickContactMode, String[]) |
Trigger a dialog that lists the various methods of interacting with
the requested |
| ShowQuickContact(Context, View, Uri, String[], String) |
Trigger a dialog that lists the various methods of interacting with
the requested |
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.
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.
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.
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.
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.