QuickContactBadge.AssignContactUri(Uri) Method

Definition

Assign the contact uri that this QuickContactBadge should be associated with.

[Android.Runtime.Register("assignContactUri", "(Landroid/net/Uri;)V", "GetAssignContactUri_Landroid_net_Uri_Handler")]
public virtual void AssignContactUri (Android.Net.Uri? contactUri);
[<Android.Runtime.Register("assignContactUri", "(Landroid/net/Uri;)V", "GetAssignContactUri_Landroid_net_Uri_Handler")>]
abstract member AssignContactUri : Android.Net.Uri -> unit
override this.AssignContactUri : Android.Net.Uri -> unit

Parameters

contactUri
Uri

Either a Contacts#CONTENT_URI or Contacts#CONTENT_LOOKUP_URI style URI.

Attributes

Remarks

Assign the contact uri that this QuickContactBadge should be associated with. Note that this is only used for displaying the QuickContact window and won't bind the contact's photo for you. Call #setImageDrawable(Drawable) to set the photo.

Java documentation for android.widget.QuickContactBadge.assignContactUri(android.net.Uri).

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