Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

BuilderBase

abstract class BuilderBase<B : GuidedDatePickerAction.BuilderBase<GuidedDatePickerAction.BuilderBase<*>>!> : GuidedAction.BuilderBase<B>
kotlin.Any
   ↳ androidx.leanback.widget.GuidedAction.BuilderBase<B>
   ↳ androidx.leanback.widget.GuidedDatePickerAction.BuilderBase

Base Builder class to build GuidedDatePickerAction. Subclass this BuilderBase when app needs to subclass GuidedDatePickerAction, implement your build() which should call applyDatePickerValues(GuidedDatePickerAction). When using GuidedDatePickerAction directly, use Builder.

Summary

Public constructors
<init>(context: Context!)

Public methods
open B
maxDate(maxDate: Long)

Sets maximum Date for date picker in milliseconds since January 1, 1970 00:00:00 in TimeZone#getDefault() time zone.

open B
minDate(minDate: Long)

Sets minimal Date for date picker in milliseconds since January 1, 1970 00:00:00 in TimeZone#getDefault() time zone.

open B

Sets format of date Picker or null for default.

open B
date(date: Long)

Sets a Date for date picker in milliseconds since January 1, 1970 00:00:00 in TimeZone#getDefault() time zone.

Protected methods
Unit

Apply values to GuidedDatePickerAction.

Inherited functions

Public constructors

<init>

BuilderBase(context: Context!)

Public methods

maxDate

open fun maxDate(maxDate: Long): B

Sets maximum Date for date picker in milliseconds since January 1, 1970 00:00:00 in TimeZone#getDefault() time zone.

Return
B: This Builder Object.

minDate

open fun minDate(minDate: Long): B

Sets minimal Date for date picker in milliseconds since January 1, 1970 00:00:00 in TimeZone#getDefault() time zone.

Return
B: This Builder Object.

datePickerFormat

open fun datePickerFormat(format: String!): B

Sets format of date Picker or null for default. The format is a case insensitive String containing the day ('d'), month ('m'), and year ('y'). When the format is not specified, a default format of current locale will be used.

Parameters
format String!: Format of showing Date, e.g. "YMD".
Return
B: This Builder object.

date

open fun date(date: Long): B

Sets a Date for date picker in milliseconds since January 1, 1970 00:00:00 in TimeZone#getDefault() time zone.

Return
B: This Builder Object.

Protected methods

applyDatePickerValues

protected fun applyDatePickerValues(action: GuidedDatePickerAction!): Unit

Apply values to GuidedDatePickerAction.

Parameters
action GuidedDatePickerAction!: GuidedDatePickerAction to apply values.