Added in API level 31

Builder


class Builder
kotlin.Any
   ↳ android.app.people.ConversationStatus.Builder

Summary

Public constructors
Builder(id: String, activity: Int)

Creates a new builder.

Public methods
ConversationStatus

ConversationStatus.Builder
setAvailability(availability: Int)

Sets the availability of the conversation to provide a hint about how likely it is that the user would receive a timely response if they sent a message.

ConversationStatus.Builder

Sets a user visible description expanding on the conversation user(s)'s activity.

ConversationStatus.Builder
setEndTimeMillis(endTimeMs: Long)

Sets an expiration time for this status.

ConversationStatus.Builder
setIcon(icon: Icon?)

Sets an image representing the conversation user(s)'s activity.

ConversationStatus.Builder
setStartTimeMillis(startTimeMs: Long)

Sets the time at which this status became valid.

Public constructors

Public methods

build

Added in API level 31
fun build(): ConversationStatus
Return
ConversationStatus This value cannot be null.

setAvailability

Added in API level 31
fun setAvailability(availability: Int): ConversationStatus.Builder

Sets the availability of the conversation to provide a hint about how likely it is that the user would receive a timely response if they sent a message.

Parameters
availability Int: Value is android.app.people.ConversationStatus#AVAILABILITY_UNKNOWN, android.app.people.ConversationStatus#AVAILABILITY_AVAILABLE, android.app.people.ConversationStatus#AVAILABILITY_BUSY, or android.app.people.ConversationStatus#AVAILABILITY_OFFLINE
Return
ConversationStatus.Builder This value cannot be null.

setDescription

Added in API level 31
fun setDescription(description: CharSequence?): ConversationStatus.Builder

Sets a user visible description expanding on the conversation user(s)'s activity.

Examples include: what media someone is watching or listening to, their approximate location, or what type of anniversary they are celebrating.

Parameters
description CharSequence?: This value may be null.
Return
ConversationStatus.Builder This value cannot be null.

setEndTimeMillis

Added in API level 31
fun setEndTimeMillis(endTimeMs: Long): ConversationStatus.Builder

Sets an expiration time for this status.

The system will remove the status at this time if it hasn't already been withdrawn.

Return
ConversationStatus.Builder This value cannot be null.

setIcon

Added in API level 31
fun setIcon(icon: Icon?): ConversationStatus.Builder

Sets an image representing the conversation user(s)'s activity.

Examples include: A still from a new story update, album art, or a map showing approximate location.

Parameters
icon Icon?: This value may be null.
Return
ConversationStatus.Builder This value cannot be null.

setStartTimeMillis

Added in API level 31
fun setStartTimeMillis(startTimeMs: Long): ConversationStatus.Builder

Sets the time at which this status became valid.

Return
ConversationStatus.Builder This value cannot be null.