Added in API level 5

QuickContactBadge


open class QuickContactBadge : ImageView, View.OnClickListener
kotlin.Any
   ↳ android.view.View
   ↳ android.widget.ImageView
   ↳ android.widget.QuickContactBadge

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

Summary

Inherited XML attributes
Inherited constants
Public constructors

QuickContactBadge(context: Context!, attrs: AttributeSet!)

QuickContactBadge(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

QuickContactBadge(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Public methods
open Unit
assignContactFromEmail(emailAddress: String!, lazyLookup: Boolean)

Assign a contact based on an email address.

open Unit
assignContactFromEmail(emailAddress: String!, lazyLookup: Boolean, extras: Bundle!)

Assign a contact based on an email address.

open Unit
assignContactFromPhone(phoneNumber: String!, lazyLookup: Boolean)

Assign a contact based on a phone number.

open Unit
assignContactFromPhone(phoneNumber: String!, lazyLookup: Boolean, extras: Bundle!)

Assign a contact based on a phone number.

open Unit
assignContactUri(contactUri: Uri!)

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

open Unit

This function is called whenever the view hotspot changes and needs to be propagated to drawables or child views managed by the view.

open CharSequence!

Return the class name of this object to be used for accessibility purposes.

open Unit

Called when a view has been clicked.

open Unit
setExcludeMimes(excludeMimes: Array<String!>!)

Set a list of specific MIME-types to exclude and not display.

open Unit

Resets the contact photo to the default state.

open Unit
setMode(size: Int)

This call has no effect anymore, as there is only one QuickContact mode

open Unit
setOverlay(overlay: Drawable!)

Assigns the drawable that is to be drawn on top of the assigned contact photo.

open Unit
setPrioritizedMimeType(prioritizedMimeType: String!)

Set which mimetype should be prioritized in the QuickContacts UI.

Protected methods
open Unit

This function is called whenever the state of the view changes in such a way that it impacts the state of drawables being shown.

open Unit

This is called when the view is attached to a window.

open Unit
onDraw(canvas: Canvas)

Implement this to do your drawing.

Inherited functions