DurationBuilder


open class DurationBuilder : TtsSpan.SemioticClassBuilder<TtsSpan.DurationBuilder!>
kotlin.Any
   ↳ android.text.style.TtsSpan.Builder<C>
   ↳ android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.DurationBuilder>
   ↳ android.text.style.TtsSpan.DurationBuilder

A builder for TtsSpans of type TYPE_DURATION.

Summary

Public constructors

Creates a builder for a TtsSpan of type TYPE_DURATION.

Public methods
open TtsSpan.DurationBuilder
setHours(hours: Int)

Sets the ARG_HOURS argument.

open TtsSpan.DurationBuilder
setMinutes(minutes: Int)

Sets the ARG_MINUTES argument.

open TtsSpan.DurationBuilder
setSeconds(seconds: Int)

Sets the ARG_SECONDS argument.

Inherited functions

Public constructors

DurationBuilder

DurationBuilder()

Creates a builder for a TtsSpan of type TYPE_DURATION.

Public methods

setHours

open fun setHours(hours: Int): TtsSpan.DurationBuilder

Sets the ARG_HOURS argument.

Parameters
hours Int: The value to be set for hours.
Return
TtsSpan.DurationBuilder This instance. This value cannot be null.

setMinutes

open fun setMinutes(minutes: Int): TtsSpan.DurationBuilder

Sets the ARG_MINUTES argument.

Parameters
minutes Int: The value to be set for minutes.
Return
TtsSpan.DurationBuilder This instance. This value cannot be null.

setSeconds

open fun setSeconds(seconds: Int): TtsSpan.DurationBuilder

Sets the ARG_SECONDS argument.

Parameters
seconds Int: The value to be set for seconds.
Return
TtsSpan.DurationBuilder This instance. This value cannot be null.