Android APIs
public static class

TtsSpan.DateBuilder

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

Class Overview

A builder for TtsSpans of type TYPE_DATE.

Summary

Public Constructors
TtsSpan.DateBuilder()
Creates a builder for a TtsSpan of type TYPE_DATE.
TtsSpan.DateBuilder(Integer weekday, Integer day, Integer month, Integer year)
Creates a builder for a TtsSpan of type TYPE_TIME and possibly sets the ARG_WEEKDAY, ARG_DAY, ARG_MONTH and ARG_YEAR arguments.
Public Methods
TtsSpan.DateBuilder setDay(int day)
Sets the ARG_DAY argument.
TtsSpan.DateBuilder setMonth(int month)
Sets the ARG_MONTH argument.
TtsSpan.DateBuilder setWeekday(int weekday)
Sets the ARG_WEEKDAY argument.
TtsSpan.DateBuilder setYear(int year)
Sets the ARG_YEAR 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.DateBuilder ()

Added in API level 21

Creates a builder for a TtsSpan of type TYPE_DATE.

public TtsSpan.DateBuilder (Integer weekday, Integer day, Integer month, Integer year)

Added in API level 21

Creates a builder for a TtsSpan of type TYPE_TIME and possibly sets the ARG_WEEKDAY, ARG_DAY, ARG_MONTH and ARG_YEAR arguments. Pass null to any argument to leave it unset.

Public Methods

public TtsSpan.DateBuilder setDay (int day)

Added in API level 21

Sets the ARG_DAY argument.

Parameters
day The value to be set for day. See ARG_DAY.
Returns
  • This instance.

public TtsSpan.DateBuilder setMonth (int month)

Added in API level 21

Sets the ARG_MONTH argument.

Parameters
month The value to be set for month. See ARG_MONTH.
Returns
  • This instance.

public TtsSpan.DateBuilder setWeekday (int weekday)

Added in API level 21

Sets the ARG_WEEKDAY argument.

Parameters
weekday The value to be set for weekday. See ARG_WEEKDAY.
Returns
  • This instance.

public TtsSpan.DateBuilder setYear (int year)

Added in API level 21

Sets the ARG_YEAR argument.

Parameters
year The value to be set for year. See ARG_YEAR.
Returns
  • This instance.