ConversationActions.Message.Builder

class ConversationActions.Message.Builder


Builder class to construct a Message

Summary

Public constructors

Builder(author: Person)

Constructs a builder.

Public functions

ConversationActions.Message

Builds the Message object.

ConversationActions.Message.Builder
setExtras(bundle: Bundle?)

Sets a set of extended data to the message.

ConversationActions.Message.Builder
setReferenceTime(referenceTime: Long?)

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

ConversationActions.Message.Builder

Sets the text of this message.

Public constructors

Builder

Builder(author: Person)

Constructs a builder.

Parameters
author: Person

the person that composed the message, use 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 PERSON_USER_OTHERS to represent a remote user.

Public functions

build

fun build(): ConversationActions.Message

Builds the Message object.

setExtras

fun setExtras(bundle: Bundle?): ConversationActions.Message.Builder

Sets a set of extended data to the message.

setReferenceTime

fun setReferenceTime(referenceTime: Long?): ConversationActions.Message.Builder

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.

setText

fun setText(text: CharSequence?): ConversationActions.Message.Builder

Sets the text of this message.