public final class

ConversationActions.Message.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.textclassifier.ConversationActions.Message.Builder

Overview

Builder class to construct a ConversationActions.Message

Summary

Constructors
publicBuilder(Person author)

Constructs a builder.

Methods
public ConversationActions.Messagebuild()

Builds the ConversationActions.Message object.

public ConversationActions.Message.BuildersetExtras(Bundle bundle)

Sets a set of extended data to the message.

public ConversationActions.Message.BuildersetReferenceTime(java.lang.Long referenceTime)

Sets the reference time of this message, for example it could be the compose or send time of this message.

public ConversationActions.Message.BuildersetText(java.lang.CharSequence text)

Sets the text of this message.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(Person author)

Constructs a builder.

Parameters:

author: the person that composed the message, use ConversationActions.Message.PERSON_USER_SELF to represent the local user. If it is not possible to identify the remote user that the local user is conversing with, use ConversationActions.Message.PERSON_USER_OTHERS to represent a remote user.

Methods

public ConversationActions.Message.Builder setText(java.lang.CharSequence text)

Sets the text of this message.

public ConversationActions.Message.Builder setReferenceTime(java.lang.Long referenceTime)

Sets the reference time of this message, for example it could be the compose or send time of this message. This should be milliseconds from the epoch of 1970-01-01T00:00:00Z(UTC timezone). If no reference time or null is set, now is used.

public ConversationActions.Message.Builder setExtras(Bundle bundle)

Sets a set of extended data to the message.

Builds the ConversationActions.Message object.