public final class

MessagingSliceBuilder.MessageBuilder

extends TemplateSliceBuilder

 java.lang.Object

androidx.slice.builders.TemplateSliceBuilder

↳androidx.slice.builders.MessagingSliceBuilder.MessageBuilder

Overview

Builder for adding a message to MessagingSliceBuilder.

Summary

Constructors
publicMessageBuilder(MessagingSliceBuilder parent)

Creates a MessageBuilder with the specified parent.

Methods
public MessagingSliceBuilder.MessageBuilderaddSource(Icon source)

Add the icon used to display contact in the messaging experience

public MessagingSliceBuilder.MessageBuilderaddText(java.lang.CharSequence text)

Add the text to be used for this message.

public MessagingSliceBuilder.MessageBuilderaddTimestamp(long timestamp)

Add the time at which this message arrived in ms since Unix epoch

from TemplateSliceBuilderbuild, checkCompatible, getBuilder, getClock, selectImpl
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public MessageBuilder(MessagingSliceBuilder parent)

Creates a MessageBuilder with the specified parent.

Methods

public MessagingSliceBuilder.MessageBuilder addSource(Icon source)

Add the icon used to display contact in the messaging experience

public MessagingSliceBuilder.MessageBuilder addText(java.lang.CharSequence text)

Add the text to be used for this message.

public MessagingSliceBuilder.MessageBuilder addTimestamp(long timestamp)

Add the time at which this message arrived in ms since Unix epoch