Android APIs
public static class

TtsSpan.TextBuilder

extends SemioticClassBuilder<TtsSpan.TextBuilder>
java.lang.Object
   ↳ android.text.style.TtsSpan.Builder<android.text.style.TtsSpan.TextBuilder>
     ↳ android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.TextBuilder>
       ↳ android.text.style.TtsSpan.TextBuilder

Class Overview

A builder for TtsSpans of type TYPE_TEXT.

Summary

Public Constructors
TtsSpan.TextBuilder()
Creates a builder for a TtsSpan of type TYPE_TEXT.
TtsSpan.TextBuilder(String text)
Creates a TtsSpan of type TYPE_TEXT and sets the ARG_TEXT argument.
Public Methods
TtsSpan.TextBuilder setText(String text)
Sets the ARG_TEXT argument, the text to be synthesized.
[Expand]
Inherited Methods
From class android.text.style.TtsSpan.SemioticClassBuilder
From class android.text.style.TtsSpan.Builder
From class java.lang.Object

Public Constructors

public TtsSpan.TextBuilder ()

Added in API level 21

Creates a builder for a TtsSpan of type TYPE_TEXT.

public TtsSpan.TextBuilder (String text)

Added in API level 21

Creates a TtsSpan of type TYPE_TEXT and sets the ARG_TEXT argument.

Parameters
text The text to be synthesized.
See Also

Public Methods

public TtsSpan.TextBuilder setText (String text)

Added in API level 21

Sets the ARG_TEXT argument, the text to be synthesized.

Parameters
text The string that will be synthesized.
Returns
  • This instance.