Register now for Android Dev Summit 2019!

Builder

class Builder
kotlin.Any
   ↳ androidx.car.cluster.navigation.RichText.Builder

Builder for creating a RichText

Summary

Public constructors

Builder for creating a RichText

Public methods

RichText.Builder
addElement(@NonNull element: RichTextElement)

Adds a graphic element to the rich text sequence.

RichText
build(@NonNull text: String)

Returns a RichText built with the provided information.

Public constructors

<init>

Builder()

Builder for creating a RichText

Public methods

addElement

@NonNull fun addElement(@NonNull element: RichTextElement): RichText.Builder

Adds a graphic element to the rich text sequence.

Parameters
element RichTextElement: a graphic element to add to the sequence.
Return
RichText.Builder: this object for chaining

build

@NonNull fun build(@NonNull text: String): RichText

Returns a RichText built with the provided information.