added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0

GuidedDatePickerAction.BuilderBase

public static abstract class GuidedDatePickerAction.BuilderBase
extends BuilderBase<B extends BuilderBase>

java.lang.Object
   ↳ androidx.leanback.widget.GuidedAction.BuilderBase<B extends androidx.leanback.widget.GuidedDatePickerAction.BuilderBase>
     ↳ androidx.leanback.widget.GuidedDatePickerAction.BuilderBase<B extends 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 GuidedDatePickerAction.Builder.

Summary

Public constructors

GuidedDatePickerAction.BuilderBase(Context context)

Public methods

B date(long date)

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

B datePickerFormat(String format)

Sets format of date Picker or null for default.

B maxDate(long maxDate)

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

B minDate(long minDate)

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

Protected methods

final void applyDatePickerValues(GuidedDatePickerAction action)

Apply values to GuidedDatePickerAction.

Inherited methods

Public constructors

GuidedDatePickerAction.BuilderBase

added in version 1.0.0
public GuidedDatePickerAction.BuilderBase (Context context)

Parameters
context Context

Public methods

date

added in version 1.0.0
public B date (long date)

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

Parameters
date long

Returns
B This Builder Object.

datePickerFormat

added in version 1.0.0
public B datePickerFormat (String format)

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".

Returns
B This Builder object.

maxDate

added in version 1.0.0
public B maxDate (long maxDate)

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

Parameters
maxDate long

Returns
B This Builder Object.

minDate

added in version 1.0.0
public B minDate (long minDate)

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

Parameters
minDate long

Returns
B This Builder Object.

Protected methods

applyDatePickerValues

added in version 1.0.0
protected final void applyDatePickerValues (GuidedDatePickerAction action)

Apply values to GuidedDatePickerAction.

Parameters
action GuidedDatePickerAction: GuidedDatePickerAction to apply values.