Skip to content

Most visited

Recently visited

navigation

TtsSpan.TimeBuilder

public static class TtsSpan.TimeBuilder
extends SemioticClassBuilder<TtsSpan.TimeBuilder>

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


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.

Inherited methods

From class android.text.style.TtsSpan.SemioticClassBuilder
From class android.text.style.TtsSpan.Builder
From class java.lang.Object

Public constructors

TtsSpan.TimeBuilder

added in API level 21
TtsSpan.TimeBuilder ()

Creates a builder for a TtsSpan of type TYPE_TIME.

TtsSpan.TimeBuilder

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

Parameters
hours int

minutes int

Public methods

setHours

added in API level 21
TtsSpan.TimeBuilder setHours (int hours)

Sets the ARG_HOURS argument.

Parameters
hours int: The value to be set for hours. See ARG_HOURS.

Returns
TtsSpan.TimeBuilder This instance.

See also:

setMinutes

added in API level 21
TtsSpan.TimeBuilder setMinutes (int minutes)

Sets the ARG_MINUTES argument.

Parameters
minutes int: The value to be set for minutes. See ARG_MINUTES.

Returns
TtsSpan.TimeBuilder This instance.

See also:

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)