Most visited

Recently visited

Added in API level 21

TtsSpan.OrdinalBuilder

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

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


TYPE_ORDINAL类型的 TYPE_ORDINAL构建器。

Summary

Public constructors

TtsSpan.OrdinalBuilder()

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

TtsSpan.OrdinalBuilder(long number)

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

TtsSpan.OrdinalBuilder(String number)

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

Public methods

TtsSpan.OrdinalBuilder setNumber(long number)

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

TtsSpan.OrdinalBuilder 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.OrdinalBuilder

Added in API level 21
TtsSpan.OrdinalBuilder ()

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

TtsSpan.OrdinalBuilder

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

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

Parameters
number long: The ordinal number to synthesize.

也可以看看:

TtsSpan.OrdinalBuilder

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

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

Parameters
number String: The number to synthesize.

也可以看看:

Public methods

setNumber

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

将数字转换为字符串并将其设置为 ARG_NUMBER的值的 ARG_NUMBER

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

setNumber

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

设置 ARG_NUMBER参数。

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

Hooray!