Android Guides | Samples

Android.Widget.QuickContactBadge Class

Widget used to show an image with the standard QuickContact badge and on-click behavior.

See Also: QuickContactBadge

Syntax

[Android.Runtime.Register("android/widget/QuickContactBadge", DoNotGenerateAcw=true)]
public class QuickContactBadge : ImageView, View+IOnClickListener, IDisposable

Remarks

Widget used to show an image with the standard QuickContact badge and on-click behavior.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5

The members of Android.Widget.QuickContactBadge are listed below.

See Also: ImageView

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

MExcludeMimesIList<string>.
[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AssignContactFromEmail(String, Boolean)
Assign a contact based on an email address.
AssignContactFromEmail(String, Boolean, Bundle)
Assign a contact based on an email address.
AssignContactFromPhone(String, Boolean)
Assign a contact based on a phone number.
AssignContactFromPhone(String, Boolean, Bundle)
Assign a contact based on a phone number.
AssignContactUri(Uri)
Assign the contact uri that this QuickContactBadge should be associated with.
OnClick(View)
Called when a view has been clicked.
SetExcludeMimes(String[])
Set a list of specific MIME-types to exclude and not display.
SetImageToDefault()
Resets the contact photo to the default state.
SetMode(Int32)
This call has no effect anymore, as there is only one QuickContact mode
SetOverlay(Drawable)
Assigns the drawable that is to be drawn on top of the assigned contact photo.