GuidedDatePickerAction

public class GuidedDatePickerAction
extends GuidedAction

java.lang.Object
   ↳ androidx.leanback.widget.Action
     ↳ androidx.leanback.widget.GuidedAction
       ↳ androidx.leanback.widget.GuidedDatePickerAction


Subclass of GuidedAction that can choose a date. The Action is editable by default; to make it read only, call hasEditableActivatorView(false) on the Builder.

Summary

Nested classes

class GuidedDatePickerAction.Builder

Builder class to build a GuidedDatePickerAction. 

class GuidedDatePickerAction.BuilderBase<B extends BuilderBase>

Base Builder class to build GuidedDatePickerAction. 

Inherited constants

Public constructors

GuidedDatePickerAction()

Public methods

long getDate()

Get current value of DatePicker in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.

String getDatePickerFormat()

Returns format of date Picker or null if not specified.

long getMaxDate()

Get maximum value of DatePicker in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.

long getMinDate()

Get minimal value of DatePicker in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.

void onRestoreInstanceState(Bundle bundle, String key)

Restore action from a bundle using a given key.

void onSaveInstanceState(Bundle bundle, String key)

Save action into a bundle using a given key.

void setDate(long date)

Sets current value of DatePicker in milliseconds since January 1, 1970 00:00:00 in TimeZone.getDefault() time zone.

Inherited methods