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 |
|
TextBuilder(text: String!)Creates a TtsSpan of type |
|
| Public methods | |
|---|---|
| open TtsSpan.TextBuilder! |
Sets the |
| Inherited functions | |
|---|---|
Public constructors
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. |