Added in API level 21

TextBuilder


open class TextBuilder : TtsSpan.SemioticClassBuilder<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
TtsSpan! build()

Returns a TtsSpan built from the parameters set by the setter methods.

C setIntArgument(arg: String!, value: Int)

Sets an argument to an int value.

C setLongArgument(arg: String!, value: Long)

Sets an argument to a long value.

C setStringArgument(arg: String!, value: String!)

Sets an argument to a string value.

C setAnimacy(animacy: String!)

Sets the animacy information for this instance.

C setCase(grammaticalCase: String!)

Sets the grammatical case information for this instance.

C setGender(gender: String!)

Sets the gender information for this instance.

C setMultiplicity(multiplicity: String!)

Sets the multiplicity information for this instance.

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.