Added in API level 36
    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   | 
        |
| Public methods | |
|---|---|
| open TtsSpan.DurationBuilder | 
            
             Sets the   | 
        
| open TtsSpan.DurationBuilder | 
            setMinutes(minutes: Int)Sets the   | 
        
| open TtsSpan.DurationBuilder | 
            setSeconds(seconds: Int)Sets the   | 
        
| Inherited functions | |
|---|---|
Public constructors
DurationBuilder
Added in API level 36
      DurationBuilder()
Creates a builder for a TtsSpan of type TYPE_DURATION.
Public methods
setHours
Added in API level 36
      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
Added in API level 36
      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
Added in API level 36
      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. |