Most visited

Recently visited

Added in API level 21

TtsSpan.TextBuilder

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


类型为TYPE_TEXTTYPE_TEXT构建器。

Summary

Public constructors

TtsSpan.TextBuilder()

TYPE_TEXT类型的 TYPE_TEXT创建一个构建器。

TtsSpan.TextBuilder(String text)

创建一个类型为TYPE_TEXTTYPE_TEXT并设置 ARG_TEXT参数。

Public methods

TtsSpan.TextBuilder setText(String text)

设置 ARG_TEXT参数,即要合成的文本。

Inherited methods

From class android.text.style.TtsSpan.SemioticClassBuilder
From class android.text.style.TtsSpan.Builder
From class java.lang.Object

Public constructors

TtsSpan.TextBuilder

Added in API level 21
TtsSpan.TextBuilder ()

创建一个类型为TYPE_TEXTTYPE_TEXT的构建器。

TtsSpan.TextBuilder

Added in API level 21
TtsSpan.TextBuilder (String text)

创建一个类型为TYPE_TEXTTYPE_TEXT并设置参数 ARG_TEXT

Parameters
text String: The text to be synthesized.

也可以看看:

Public methods

setText

Added in API level 21
TtsSpan.TextBuilder setText (String text)

设置 ARG_TEXT参数,即要合成的文本。

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

Hooray!