GuidedDatePickerAction.BuilderBase
This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings .
public
static
abstract
class
GuidedDatePickerAction.BuilderBase
extends BuilderBase <B extends 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 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.
Inherited methods
From
class
android.support.v17.leanback.widget.GuidedAction.BuilderBase
From
class
java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
final
Class<?>
getClass()
int
hashCode()
final
void
notify()
final
void
notifyAll()
String
toString()
final
void
wait(long arg0, int arg1)
final
void
wait(long arg0)
final
void
wait()
Public constructors
GuidedDatePickerAction.BuilderBase
GuidedDatePickerAction.BuilderBase (Context context)
Parameters
context
Context
Public methods
date
B date (long date)
Sets a Date for date picker in milliseconds since January 1, 1970 00:00:00 in
getDefault()
time zone.
Returns
B
This Builder Object.
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
B maxDate (long maxDate)
Sets maximum Date for date picker in milliseconds since January 1, 1970 00:00:00 in
getDefault()
time zone.
Returns
B
This Builder Object.
minDate
B minDate (long minDate)
Sets minimal Date for date picker in milliseconds since January 1, 1970 00:00:00 in
getDefault()
time zone.
Returns
B
This Builder Object.
Protected methods
applyDatePickerValues
void applyDatePickerValues (GuidedDatePickerAction action)
Apply values to GuidedDatePickerAction.
Parameters
action
GuidedDatePickerAction
: GuidedDatePickerAction to apply values.