DateBuilder
open class DateBuilder : TtsSpan.SemioticClassBuilder<TtsSpan.DateBuilder!>
| kotlin.Any | |||
| ↳ | android.text.style.TtsSpan.Builder<C> | ||
| ↳ | android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.DateBuilder> | ||
| ↳ | android.text.style.TtsSpan.DateBuilder | ||
A builder for TtsSpans of type TYPE_DATE.
Summary
| Public constructors | |
|---|---|
|
Creates a builder for a TtsSpan of type |
|
DateBuilder(weekday: Int!, day: Int!, month: Int!, year: Int!)Creates a builder for a TtsSpan of type |
|
| Public methods | |
|---|---|
| open TtsSpan.DateBuilder! |
Sets the |
| open TtsSpan.DateBuilder! |
Sets the |
| open TtsSpan.DateBuilder! |
setWeekday(weekday: Int)Sets the |
| open TtsSpan.DateBuilder! |
Sets the |
| Inherited functions | |
|---|---|
Public constructors
DateBuilder
DateBuilder(
weekday: Int!,
day: Int!,
month: Int!,
year: Int!)
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
setDay
open fun setDay(day: Int): TtsSpan.DateBuilder!
Sets the ARG_DAY argument.
| Parameters | |
|---|---|
day |
Int: The value to be set for day. See ARG_DAY. |
| Return | |
|---|---|
TtsSpan.DateBuilder! |
This instance. |
See Also
setMonth
open fun setMonth(month: Int): TtsSpan.DateBuilder!
Sets the ARG_MONTH argument.
| Parameters | |
|---|---|
month |
Int: The value to be set for month. See ARG_MONTH. |
| Return | |
|---|---|
TtsSpan.DateBuilder! |
This instance. |
See Also
setWeekday
open fun setWeekday(weekday: Int): TtsSpan.DateBuilder!
Sets the ARG_WEEKDAY argument.
| Parameters | |
|---|---|
weekday |
Int: The value to be set for weekday. See ARG_WEEKDAY. |
| Return | |
|---|---|
TtsSpan.DateBuilder! |
This instance. |
See Also
setYear
open fun setYear(year: Int): TtsSpan.DateBuilder!
Sets the ARG_YEAR argument.
| Parameters | |
|---|---|
year |
Int: The value to be set for year. See ARG_YEAR. |
| Return | |
|---|---|
TtsSpan.DateBuilder! |
This instance. |
See Also