Most visited

Recently visited

Added in API level 21

TtsSpan.CardinalBuilder

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

java.lang.Object
   ↳ android.text.style.TtsSpan.Builder<android.text.style.TtsSpan.CardinalBuilder>
     ↳ android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.CardinalBuilder>
       ↳ android.text.style.TtsSpan.CardinalBuilder


类型为TYPE_CARDINALTYPE_CARDINAL构建器。

Summary

Public constructors

TtsSpan.CardinalBuilder()

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

TtsSpan.CardinalBuilder(long number)

创建一个类型为TYPE_CARDINALTYPE_CARDINAL并设置参数 ARG_NUMBER

TtsSpan.CardinalBuilder(String number)

创建一个类型为TYPE_CARDINALTYPE_CARDINAL并设置参数 ARG_NUMBER

Public methods

TtsSpan.CardinalBuilder setNumber(long number)

将数字转换为字符串并将其设置为 ARG_NUMBER便捷方法。

TtsSpan.CardinalBuilder setNumber(String number)

设置 ARG_NUMBER参数。

Inherited methods

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

Public constructors

TtsSpan.CardinalBuilder

Added in API level 21
TtsSpan.CardinalBuilder ()

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

TtsSpan.CardinalBuilder

Added in API level 21
TtsSpan.CardinalBuilder (long number)

创建一个类型为TYPE_CARDINALTYPE_CARDINAL并设置参数 ARG_NUMBER

Parameters
number long: The number to synthesize.

也可以看看:

TtsSpan.CardinalBuilder

Added in API level 21
TtsSpan.CardinalBuilder (String number)

创建一个类型为TYPE_CARDINALTYPE_CARDINAL并设置 ARG_NUMBER参数。

Parameters
number String: The number to synthesize.

也可以看看:

Public methods

setNumber

Added in API level 21
TtsSpan.CardinalBuilder setNumber (long number)

将数字转换为字符串并将其设置为 ARG_NUMBER便捷方法。

Parameters
number long: The number that will be synthesized.
Returns
TtsSpan.CardinalBuilder This instance.

setNumber

Added in API level 21
TtsSpan.CardinalBuilder setNumber (String number)

设置 ARG_NUMBER参数。

Parameters
number String: A non-empty string of digits with an optional leading + or -.
Returns
TtsSpan.CardinalBuilder This instance.

Hooray!