RecentCall

data class RecentCall(    val type: RecentCallsService.CallType,     val displayName: String,     val phoneNumber: PhoneNumber,     val duration: Duration,     val creationTime: Instant) : Parcelable

Describes a recent call made to or from a connected mobile phone.

Constructors

Link copied to clipboard
fun RecentCall(    type: RecentCallsService.CallType,     displayName: String,     phoneNumber: PhoneNumber,     duration: Duration,     creationTime: Instant)

Properties

Link copied to clipboard
val creationTime: Instant

The date and time of the call. If the call was an outgoing call, this is the time the call was placed. If the call was an incoming call, this is the time the call arrived.

Link copied to clipboard
val displayName: String

Display name for the corresponding contact, or empty if unknown.

Link copied to clipboard
val duration: Duration

The duration of the call, set to Duration.ZERO seconds, if unknown.

Link copied to clipboard
val phoneNumber: PhoneNumber

Phone number used with this call. For unknown contact, phone number type is set to PhoneNumberType.Custom with an empty label.

Link copied to clipboard
val type: RecentCallsService.CallType

The type of the call.

Functions

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

displayName is masked when the RecentCall is printed.

Inherited functions

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