FractionBuilder
open class FractionBuilder : TtsSpan.SemioticClassBuilder<TtsSpan.FractionBuilder!>
kotlin.Any | |||
↳ | android.text.style.TtsSpan.Builder<C> | ||
↳ | android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.FractionBuilder> | ||
↳ | android.text.style.TtsSpan.FractionBuilder |
A builder for TtsSpans of type TYPE_FRACTION
.
Summary
Public constructors | |
---|---|
Creates a builder for a TtsSpan of type |
|
FractionBuilder(integerPart: Long, numerator: Long, denominator: Long) Creates a TtsSpan of type |
Public methods | |
---|---|
open TtsSpan.FractionBuilder! |
setDenominator(denominator: Long) Convenience method that converts the denominator to a String and sets the argument |
open TtsSpan.FractionBuilder! |
setDenominator(denominator: String!) Sets the |
open TtsSpan.FractionBuilder! |
setIntegerPart(integerPart: Long) Convenience method that converts the integer to a String and sets the argument |
open TtsSpan.FractionBuilder! |
setIntegerPart(integerPart: String!) Sets the |
open TtsSpan.FractionBuilder! |
setNumerator(numerator: Long) Convenience method that converts the numerator to a String and sets the argument |
open TtsSpan.FractionBuilder! |
setNumerator(numerator: String!) Sets the |
Inherited functions | |
---|---|
Public constructors
FractionBuilder
FractionBuilder()
Creates a builder for a TtsSpan of type TYPE_FRACTION
.
FractionBuilder
FractionBuilder(
integerPart: Long,
numerator: Long,
denominator: Long)
Creates a TtsSpan of type TYPE_FRACTION
and sets the ARG_INTEGER_PART
, ARG_NUMERATOR
, and ARG_DENOMINATOR
arguments.
Public methods
setDenominator
open fun setDenominator(denominator: Long): TtsSpan.FractionBuilder!
Convenience method that converts the denominator to a String and sets the argument ARG_DENOMINATOR
.
Parameters | |
---|---|
denominator |
Long: The denominator. |
Return | |
---|---|
TtsSpan.FractionBuilder! |
This instance. |
setDenominator
open fun setDenominator(denominator: String!): TtsSpan.FractionBuilder!
Sets the ARG_DENOMINATOR
argument.
Parameters | |
---|---|
denominator |
String!: A non-empty string of digits with an optional leading + or -. |
Return | |
---|---|
TtsSpan.FractionBuilder! |
This instance. |
setIntegerPart
open fun setIntegerPart(integerPart: Long): TtsSpan.FractionBuilder!
Convenience method that converts the integer to a String and sets the argument ARG_NUMBER
.
Parameters | |
---|---|
integerPart |
Long: The integer part. |
Return | |
---|---|
TtsSpan.FractionBuilder! |
This instance. |
setIntegerPart
open fun setIntegerPart(integerPart: String!): TtsSpan.FractionBuilder!
Sets the ARG_INTEGER_PART
argument.
Parameters | |
---|---|
integerPart |
String!: A non-empty string of digits with an optional leading + or -. |
Return | |
---|---|
TtsSpan.FractionBuilder! |
This instance. |
setNumerator
open fun setNumerator(numerator: Long): TtsSpan.FractionBuilder!
Convenience method that converts the numerator to a String and sets the argument ARG_NUMERATOR
.
Parameters | |
---|---|
numerator |
Long: The numerator. |
Return | |
---|---|
TtsSpan.FractionBuilder! |
This instance. |
setNumerator
open fun setNumerator(numerator: String!): TtsSpan.FractionBuilder!
Sets the ARG_NUMERATOR
argument.
Parameters | |
---|---|
numerator |
String!: A non-empty string of digits with an optional leading + or -. |
Return | |
---|---|
TtsSpan.FractionBuilder! |
This instance. |