Added in API level 21

TextBuilder


open class TextBuilder : TtsSpan.SemioticClassBuilder<TtsSpan.TextBuilder!>
kotlin.Any
   ↳ android.text.style.TtsSpan.Builder<C>
   ↳ android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.TextBuilder>
   ↳ android.text.style.TtsSpan.TextBuilder

A builder for TtsSpans of type TYPE_TEXT.

Summary

Public constructors

Creates a builder for a TtsSpan of type TYPE_TEXT.

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

Public methods
open TtsSpan.TextBuilder!
setText(text: String!)

Sets the ARG_TEXT argument, the text to be synthesized.

Inherited functions

Public constructors

TextBuilder

Added in API level 21
TextBuilder()

Creates a builder for a TtsSpan of type TYPE_TEXT.

TextBuilder

Added in API level 21
TextBuilder(text: String!)

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

Parameters
text String!: The text to be synthesized.

See Also

Public methods

setText

Added in API level 21
open fun setText(text: String!): TtsSpan.TextBuilder!

Sets the ARG_TEXT argument, the text to be synthesized.

Parameters
text String!: The string that will be synthesized.
Return
TtsSpan.TextBuilder! This instance.