Most visited

Recently visited

Added in API level 21

TtsSpan.MoneyBuilder

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

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


TYPE_MONEY类型的 TYPE_MONEY构建器。

Summary

Public constructors

TtsSpan.MoneyBuilder()

创建一个TYPE_MONEY类型的 TYPE_MONEY

Public methods

TtsSpan.MoneyBuilder setCurrency(String currency)

设置 ARG_CURRENCY参数。

TtsSpan.MoneyBuilder setFractionalPart(String fractionalPart)

设置 ARG_FRACTIONAL_PART参数。

TtsSpan.MoneyBuilder setIntegerPart(String integerPart)

设置 ARG_INTEGER_PART参数。

TtsSpan.MoneyBuilder setIntegerPart(long integerPart)

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

TtsSpan.MoneyBuilder setQuantity(String quantity)

设置 ARG_QUANTITY参数。

Inherited methods

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

Public constructors

TtsSpan.MoneyBuilder

Added in API level 21
TtsSpan.MoneyBuilder ()

创建一个TYPE_MONEY类型的 TYPE_MONEY

Public methods

setCurrency

Added in API level 21
TtsSpan.MoneyBuilder setCurrency (String currency)

设置 ARG_CURRENCY参数。

Parameters
currency String: Should be a ISO4217 currency code, e.g. "USD".
Returns
TtsSpan.MoneyBuilder This instance.

setFractionalPart

Added in API level 21
TtsSpan.MoneyBuilder setFractionalPart (String fractionalPart)

设置 ARG_FRACTIONAL_PART参数。

Parameters
fractionalPart String: Can be a string of digits of any size.
Returns
TtsSpan.MoneyBuilder This instance.

setIntegerPart

Added in API level 21
TtsSpan.MoneyBuilder setIntegerPart (String integerPart)

设置 ARG_INTEGER_PART参数。

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

setIntegerPart

Added in API level 21
TtsSpan.MoneyBuilder setIntegerPart (long integerPart)

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

Parameters
integerPart long: The integer part of the amount.
Returns
TtsSpan.MoneyBuilder This instance.

setQuantity

Added in API level 21
TtsSpan.MoneyBuilder setQuantity (String quantity)

设置 ARG_QUANTITY参数。

Returns
TtsSpan.MoneyBuilder This instance.

Hooray!