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

open CharSequence!

open Unit

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

open Unit

open Unit
onDraw(canvas: Canvas)

Inherited functions