public final class

RichText.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.car.cluster.navigation.RichText.Builder

Overview

Builder for creating a RichText

Summary

Constructors
publicBuilder()

Methods
public RichText.BuilderaddElement(RichTextElement element)

Adds a graphic element to the rich text sequence.

public RichTextbuild(java.lang.String text)

Returns a RichText built with the provided information.

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

Constructors

public Builder()

Methods

public RichText.Builder addElement(RichTextElement element)

Adds a graphic element to the rich text sequence.

Parameters:

element: a graphic element to add to the sequence.

Returns:

this object for chaining

public RichText build(java.lang.String text)

Returns a RichText built with the provided information.