public abstract class

GuidedDatePickerAction.BuilderBase<B extends GuidedDatePickerAction.BuilderBase>

extends GuidedAction.BuilderBase<GuidedDatePickerAction.BuilderBase>

 java.lang.Object

androidx.leanback.widget.GuidedAction.BuilderBase<GuidedDatePickerAction.BuilderBase>

↳androidx.leanback.widget.GuidedDatePickerAction.BuilderBase<B>

Subclasses:

GuidedDatePickerAction.Builder

Overview

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

Summary

Constructors
publicBuilderBase(Context context)

Methods
protected final voidapplyDatePickerValues(GuidedDatePickerAction action)

Apply values to GuidedDatePickerAction.

public GuidedDatePickerAction.BuilderBase<B>date(long date)

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

public GuidedDatePickerAction.BuilderBase<B>datePickerFormat(java.lang.String format)

Sets format of date Picker or null for default.

public GuidedDatePickerAction.BuilderBase<B>maxDate(long maxDate)

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

public GuidedDatePickerAction.BuilderBase<B>minDate(long minDate)

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

from GuidedAction.BuilderBase<B>applyValues, autofillHints, autoSaveRestoreEnabled, checked, checkSetId, clickAction, description, description, descriptionEditable, descriptionEditInputType, descriptionInputType, editable, editDescription, editDescription, editInputType, editTitle, editTitle, enabled, focusable, getContext, hasEditableActivatorView, hasNext, icon, iconResourceId, id, infoOnly, inputType, intent, multilineDescription, subActions, title, title
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public BuilderBase(Context context)

Methods

public GuidedDatePickerAction.BuilderBase<B> datePickerFormat(java.lang.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: Format of showing Date, e.g. "YMD".

Returns:

This Builder object.

public GuidedDatePickerAction.BuilderBase<B> date(long date)

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

Returns:

This Builder Object.

public GuidedDatePickerAction.BuilderBase<B> minDate(long minDate)

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

Returns:

This Builder Object.

public GuidedDatePickerAction.BuilderBase<B> maxDate(long maxDate)

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

Returns:

This Builder Object.

protected final void applyDatePickerValues(GuidedDatePickerAction action)

Apply values to GuidedDatePickerAction.

Parameters:

action: GuidedDatePickerAction to apply values.