Builder
class Builder
| kotlin.Any | |
| ↳ | android.app.people.ConversationStatus.Builder |
Summary
| Public constructors | |
|---|---|
|
Creates a new builder. |
|
| Public methods | |
|---|---|
| ConversationStatus |
build() |
| 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 |
setDescription(description: CharSequence?)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 |
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
Builder
Builder(
id: String,
activity: Int)
Creates a new builder.
| Parameters | |
|---|---|
id |
String: The unique id for this status This value cannot be null. |
activity |
Int: The type of status Value is android.app.people.ConversationStatus#ACTIVITY_OTHER, android.app.people.ConversationStatus#ACTIVITY_BIRTHDAY, android.app.people.ConversationStatus#ACTIVITY_ANNIVERSARY, android.app.people.ConversationStatus#ACTIVITY_NEW_STORY, android.app.people.ConversationStatus#ACTIVITY_AUDIO, android.app.people.ConversationStatus#ACTIVITY_VIDEO, android.app.people.ConversationStatus#ACTIVITY_GAME, android.app.people.ConversationStatus#ACTIVITY_LOCATION, or android.app.people.ConversationStatus#ACTIVITY_UPCOMING_BIRTHDAY This value cannot be null. |
Public methods
build
fun build(): ConversationStatus
| Return | |
|---|---|
ConversationStatus |
This value cannot be null. |
setAvailability
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.
| Return | |
|---|---|
ConversationStatus.Builder |
This value cannot be null. |
setDescription
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
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
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
fun setStartTimeMillis(startTimeMs: Long): ConversationStatus.Builder
Sets the time at which this status became valid.
| Return | |
|---|---|
ConversationStatus.Builder |
This value cannot be null. |