Android 12 Developer Preview is here! Try it out, and give us your feedback!

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
date(date: Long)

Sets a 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
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.

Protected methods
Unit

Apply values to GuidedDatePickerAction.

Inherited functions