# Print output for @column tags ?> TtsSpan.TextBuilder - Android SDK | Android Developers

Most visited


Recently visited


TtsSpan.TextBuilder

public static class TtsSpan.TextBuilder
extends SemioticClassBuilder<TtsSpan.TextBuilder>

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


A builder for TtsSpans of type TtsSpan.TYPE_TEXT.

Summary


Public constructors

TextBuilder()

Creates a builder for a TtsSpan of type TtsSpan.TYPE_TEXT.

TextBuilder(String text)

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

Public methods

TtsSpan.TextBuilder setText(String text)

Sets the TtsSpan.ARG_TEXT argument, the text to be synthesized.

Inherited methods

Public constructors


TextBuilder

public TextBuilder ()

Creates a builder for a TtsSpan of type TtsSpan.TYPE_TEXT.

TextBuilder

public TextBuilder (String text)

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

Parameters
text String: The text to be synthesized.

See also:

Public methods


setText

public TtsSpan.TextBuilder setText (String text)

Sets the TtsSpan.ARG_TEXT argument, the text to be synthesized.

Parameters
text String: The string that will be synthesized.

Returns
TtsSpan.TextBuilder This instance.

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.