ConversationContact

data class ConversationContact(    val displayName: String?,     val phoneNumber: String?,     val image: DrawableResolver?,     val source: ConversationSource? = null) : Parcelable

The contact information for remote parties on a specific messaging application.

Constructors

Link copied to clipboard
fun ConversationContact(    displayName: String?,     phoneNumber: String?,     image: DrawableResolver?,     source: ConversationSource? = null)

Properties

Link copied to clipboard
val displayName: String?

The display name of the contact. Set to null if unknown.

Link copied to clipboard
val image: DrawableResolver?

An image associated with this contact, if available, or null if there is no image available.

Link copied to clipboard
val phoneNumber: String?

The phone number of the contact. Set to null if unknown.

Link copied to clipboard
val source: ConversationSource? = null

The source from which this contact originates, or null if unknown.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Custom equals method to compare ConversationContacts based on displayName, phoneNumber and source.

Link copied to clipboard
open override fun hashCode(): Int

Custom hashCode method to only include hashing the contents of [ConversationContact based on displayName, phoneNumber and source.

Link copied to clipboard
open override fun toString(): String

displayName and phoneNumber are masked when the ConversationContact is printed.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)