Presence

interface Presence

Data structure indicating the Presence info for a person

Since

3.10.0

Functions

Link copied to clipboard
abstract fun getContactId(): String

Returns the contact id of the person

Link copied to clipboard
abstract fun getCustomStatus(): String

Returns the custom status set by the person

Link copied to clipboard
abstract fun getExpiresTime(): Long

Returns the expiry UTC time in milliseconds, in case of status like DND, OutOfOffice, Quiet, Busy etc. It can be compared with current time to calculate till when the getStatus is valid.

Link copied to clipboard
abstract fun getLastActiveTime(): Long

Returns the UTC time when the person was last active in milliseconds. It can be compared with current time to calculate the inactive time of the person

Link copied to clipboard
abstract fun getStatus(): PresenceStatus

Returns the PresenceStatus of the person