DateSelector

interface DateSelector<S> : Parcelable

Interface to control how the Calendar displays and returns selections.

Implementors must implement Parcelable so that selection can be maintained through Lifecycle events (e.g., Fragment destruction).

Dates are represented as times in UTC milliseconds.

Parameters

S

The type of item available when cells are selected in the adapter

Properties

defaultTitleResId
Link copied to clipboard
abstract val defaultTitleResId: Int
isSelectionComplete
Link copied to clipboard
abstract val isSelectionComplete: Boolean
Returns true if the current selection is acceptable.
selectedDays
Link copied to clipboard
abstract val selectedDays: Collection<Long>
Returns a list of longs whose time value represents days that should be marked selected.
selectedRanges
Link copied to clipboard
abstract val selectedRanges: Collection<Pair<Long?, Long?>?>
Returns a list of ranges whose time values represent ranges that should be filled.

Functions

getDefaultThemeResId
Link copied to clipboard
abstract fun getDefaultThemeResId(context: Context?): Int
getSelection
Link copied to clipboard
abstract fun getSelection(): S
Returns the current selection.
onCreateTextInputView
Link copied to clipboard
abstract fun onCreateTextInputView(layoutInflater: LayoutInflater, viewGroup: ViewGroup?, bundle: Bundle?, constraints: CalendarConstraints, listener: OnSelectionChangedListener<S>): View
select
Link copied to clipboard
abstract fun select(selection: Long)
Allows this selection handler to respond to clicks within the adapter.
setSelection
Link copied to clipboard
abstract fun setSelection(selection: S)
Sets the current selection to selection.
setSelectionDisplayString
Link copied to clipboard
abstract fun setSelectionDisplayString(context: Context?, headerSelectionText: TextView?, announceDateForAccessibility: Boolean)

Inherited functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Inheritors

SingleDateSelector
Link copied to clipboard