Added in API level 21

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 TYPE_MEASURE.

Public methods
open TtsSpan.MeasureBuilder!
setDenominator(denominator: Long)

Convenience method that converts the denominator to a String and set it to the value for ARG_DENOMINATOR.

open TtsSpan.MeasureBuilder!
setDenominator(denominator: String!)

Sets the ARG_DENOMINATOR argument.

open TtsSpan.MeasureBuilder!
setFractionalPart(fractionalPart: String!)

Sets the ARG_FRACTIONAL_PART argument.

open TtsSpan.MeasureBuilder!
setIntegerPart(integerPart: Long)

Convenience method that converts the integer part to a String and set it to the value for ARG_INTEGER_PART.

open TtsSpan.MeasureBuilder!
setIntegerPart(integerPart: String!)

Sets the ARG_INTEGER_PART argument.

open TtsSpan.MeasureBuilder!
setNumber(number: Long)

Convenience method that converts the number to a String and set it to the value for ARG_NUMBER.

open TtsSpan.MeasureBuilder!
setNumber(number: String!)

Sets the ARG_NUMBER argument.

open TtsSpan.MeasureBuilder!
setNumerator(numerator: Long)

Convenience method that converts the numerator to a String and set it to the value for ARG_NUMERATOR.

open TtsSpan.MeasureBuilder!
setNumerator(numerator: String!)

Sets the ARG_NUMERATOR argument.

open TtsSpan.MeasureBuilder!
setUnit(unit: String!)

Sets the ARG_UNIT argument.

Inherited functions

Public constructors

MeasureBuilder

Added in API level 21
MeasureBuilder()

Creates a builder for a TtsSpan of type TYPE_MEASURE.

Public methods

setDenominator

Added in API level 21
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.

setDenominator

Added in API level 21
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.

setFractionalPart

Added in API level 21
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

Added in API level 21
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.

setIntegerPart

Added in API level 21
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.

setNumber

Added in API level 21
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.

setNumber

Added in API level 21
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.

setNumerator

Added in API level 21
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.

setNumerator

Added in API level 21
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.

setUnit

Added in API level 21
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.