Android APIs
public static class

TtsSpan.TimeBuilder

extends SemioticClassBuilder<TtsSpan.TimeBuilder>
java.lang.Object
   ↳ android.text.style.TtsSpan.Builder<android.text.style.TtsSpan.TimeBuilder>
     ↳ android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.TimeBuilder>
       ↳ android.text.style.TtsSpan.TimeBuilder

Class Overview

A builder for TtsSpans of type TYPE_TIME.

Summary

Public Constructors
TtsSpan.TimeBuilder()
Creates a builder for a TtsSpan of type TYPE_TIME.
TtsSpan.TimeBuilder(int hours, int minutes)
Creates a builder for a TtsSpan of type TYPE_TIME and sets the ARG_HOURS and ARG_MINUTES arguments.
Public Methods
TtsSpan.TimeBuilder setHours(int hours)
Sets the ARG_HOURS argument.
TtsSpan.TimeBuilder setMinutes(int minutes)
Sets the ARG_MINUTES argument.
[Expand]
Inherited Methods
From class android.text.style.TtsSpan.SemioticClassBuilder
From class android.text.style.TtsSpan.Builder
From class java.lang.Object

Public Constructors

public TtsSpan.TimeBuilder ()

Added in API level 21

Creates a builder for a TtsSpan of type TYPE_TIME.

public TtsSpan.TimeBuilder (int hours, int minutes)

Added in API level 21

Creates a builder for a TtsSpan of type TYPE_TIME and sets the ARG_HOURS and ARG_MINUTES arguments.

Public Methods

public TtsSpan.TimeBuilder setHours (int hours)

Added in API level 21

Sets the ARG_HOURS argument.

Parameters
hours The value to be set for hours. See ARG_HOURS.
Returns
  • This instance.

public TtsSpan.TimeBuilder setMinutes (int minutes)

Added in API level 21

Sets the ARG_MINUTES argument.

Parameters
minutes The value to be set for minutes. See ARG_MINUTES.
Returns
  • This instance.