MeasureBuilder
open class MeasureBuilder : TtsSpan.SemioticClassBuilder<TtsSpan.MeasureBuilder!>
kotlin.Any | |||
↳ | android.text.style.TtsSpan.Builder<C> | ||
↳ | android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.MeasureBuilder> | ||
↳ | android.text.style.TtsSpan.MeasureBuilder |
A builder for TtsSpans of type TYPE_MEASURE
.
Summary
Public constructors | |
---|---|
Creates a builder for a TtsSpan of type |
Public methods | |
---|---|
open TtsSpan.MeasureBuilder! |
setDenominator(denominator: String!) Sets the |
open TtsSpan.MeasureBuilder! |
setDenominator(denominator: Long) Convenience method that converts the denominator to a String and set it to the value for |
open TtsSpan.MeasureBuilder! |
setFractionalPart(fractionalPart: String!) Sets the |
open TtsSpan.MeasureBuilder! |
setIntegerPart(integerPart: String!) Sets the |
open TtsSpan.MeasureBuilder! |
setIntegerPart(integerPart: Long) Convenience method that converts the integer part to a String and set it to the value for |
open TtsSpan.MeasureBuilder! |
Sets the |
open TtsSpan.MeasureBuilder! |
Convenience method that converts the number to a String and set it to the value for |
open TtsSpan.MeasureBuilder! |
setNumerator(numerator: String!) Sets the |
open TtsSpan.MeasureBuilder! |
setNumerator(numerator: Long) Convenience method that converts the numerator to a String and set it to the value for |
open TtsSpan.MeasureBuilder! |
Sets the |
Inherited functions | |
---|---|
Public constructors
MeasureBuilder
MeasureBuilder()
Creates a builder for a TtsSpan of type TYPE_MEASURE
.
Public methods
setDenominator
open fun setDenominator(denominator: String!): TtsSpan.MeasureBuilder!
Sets the ARG_DENOMINATOR
argument.
Parameters | |
---|---|
denominator |
String!: The denominator of a fraction; a non-empty string of digits with an optional leading + or -. |
Return | |
---|---|
TtsSpan.MeasureBuilder! |
This instance. |
setDenominator
open fun setDenominator(denominator: Long): TtsSpan.MeasureBuilder!
Convenience method that converts the denominator to a String and set it to the value for ARG_DENOMINATOR
.
Parameters | |
---|---|
denominator |
Long: The denominator of a fraction. |
Return | |
---|---|
TtsSpan.MeasureBuilder! |
This instance. |
setFractionalPart
open fun setFractionalPart(fractionalPart: String!): TtsSpan.MeasureBuilder!
Sets the ARG_FRACTIONAL_PART
argument.
Parameters | |
---|---|
fractionalPart |
String!: The fractional part of a decimal; a non-empty string of digits with an optional leading + or -. |
Return | |
---|---|
TtsSpan.MeasureBuilder! |
This instance. |
setIntegerPart
open fun setIntegerPart(integerPart: String!): TtsSpan.MeasureBuilder!
Sets the ARG_INTEGER_PART
argument.
Parameters | |
---|---|
integerPart |
String!: The integer part of a decimal or fraction; a non-empty string of digits with an optional leading + or -. |
Return | |
---|---|
TtsSpan.MeasureBuilder! |
This instance. |
setIntegerPart
open fun setIntegerPart(integerPart: Long): TtsSpan.MeasureBuilder!
Convenience method that converts the integer part to a String and set it to the value for ARG_INTEGER_PART
.
Parameters | |
---|---|
integerPart |
Long: The integer part of a decimal or fraction. |
Return | |
---|---|
TtsSpan.MeasureBuilder! |
This instance. |
setNumber
open fun setNumber(number: String!): TtsSpan.MeasureBuilder!
Sets the ARG_NUMBER
argument.
Parameters | |
---|---|
number |
String!: A non-empty string of digits with an optional leading + or -. |
Return | |
---|---|
TtsSpan.MeasureBuilder! |
This instance. |
setNumber
open fun setNumber(number: Long): TtsSpan.MeasureBuilder!
Convenience method that converts the number to a String and set it to the value for ARG_NUMBER
.
Parameters | |
---|---|
number |
Long: The amount of the measure. |
Return | |
---|---|
TtsSpan.MeasureBuilder! |
This instance. |
setNumerator
open fun setNumerator(numerator: String!): TtsSpan.MeasureBuilder!
Sets the ARG_NUMERATOR
argument.
Parameters | |
---|---|
numerator |
String!: The numerator of a fraction; a non-empty string of digits with an optional leading + or -. |
Return | |
---|---|
TtsSpan.MeasureBuilder! |
This instance. |
setNumerator
open fun setNumerator(numerator: Long): TtsSpan.MeasureBuilder!
Convenience method that converts the numerator to a String and set it to the value for ARG_NUMERATOR
.
Parameters | |
---|---|
numerator |
Long: The numerator of a fraction. |
Return | |
---|---|
TtsSpan.MeasureBuilder! |
This instance. |
setUnit
open fun setUnit(unit: String!): TtsSpan.MeasureBuilder!
Sets the ARG_UNIT
argument.
Parameters | |
---|---|
unit |
String!: The unit of the measure. |
Return | |
---|---|
TtsSpan.MeasureBuilder! |
This instance. |
See Also