added in version 24.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

GuidedDatePickerAction.BuilderBase

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

java.lang.Object
   ↳ android.support.v17.leanback.widget.GuidedAction.BuilderBase<B extends android.support.v17.leanback.widget.GuidedDatePickerAction.BuilderBase>
     ↳ android.support.v17.leanback.widget.GuidedDatePickerAction.BuilderBase<B extends android.support.v17.leanback.widget.GuidedDatePickerAction.BuilderBase>
Known Direct Subclasses


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 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 getDefault() time zone.

B minDate(long minDate)

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

Protected methods

final void applyDatePickerValues(GuidedDatePickerAction action)

Apply values to GuidedDatePickerAction.

Inherited methods

From class android.support.v17.leanback.widget.GuidedAction.BuilderBase
From class java.lang.Object

Public constructors

GuidedDatePickerAction.BuilderBase

added in version 24.1.0
GuidedDatePickerAction.BuilderBase (Context context)

Parameters
context Context

Public methods

date

added in version 24.1.0
B date (long date)

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

Parameters
date long

Returns
B This Builder Object.

datePickerFormat

added in version 24.1.0
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 24.1.0
B maxDate (long maxDate)

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

Parameters
maxDate long

Returns
B This Builder Object.

minDate

added in version 24.1.0
B minDate (long minDate)

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

Parameters
minDate long

Returns
B This Builder Object.

Protected methods

applyDatePickerValues

added in version 24.1.0
void applyDatePickerValues (GuidedDatePickerAction action)

Apply values to GuidedDatePickerAction.

Parameters
action GuidedDatePickerAction: GuidedDatePickerAction to apply values.