The Android Developer Challenge is back! Submit your idea before December 2.

RichText.Builder

public static final class RichText.Builder
extends Object

java.lang.Object
   ↳ androidx.car.cluster.navigation.RichText.Builder


Builder for creating a RichText

Summary

Public constructors

RichText.Builder()

Public methods

RichText.Builder addElement(RichTextElement element)

Adds a graphic element to the rich text sequence.

RichText build(String text)

Returns a RichText built with the provided information.

Inherited methods

Public constructors

RichText.Builder

public RichText.Builder ()

Public methods

addElement

public RichText.Builder addElement (RichTextElement element)

Adds a graphic element to the rich text sequence.

Parameters
element RichTextElement: a graphic element to add to the sequence.

Returns
RichText.Builder this object for chaining

build

public RichText build (String text)

Returns a RichText built with the provided information.

Parameters
text String

Returns
RichText