android-components / mozilla.components.concept.engine.prompt / PromptRequest / TimeSelection

TimeSelection

class TimeSelection : PromptRequest (source)

Value type that represents a request for a date prompt for picking a year, month, and day.

Types

Name Summary
Type enum class Type

Constructors

Name Summary
<init> TimeSelection(title: String, initialDate: Date, minimumDate: Date?, maximumDate: Date?, type: Type = Type.DATE, onConfirm: (Date) -> Unit, onClear: () -> Unit)
Value type that represents a request for a date prompt for picking a year, month, and day.

Properties

Name Summary
initialDate val initialDate: Date
date that dialog should be set by default.
maximumDate val maximumDate: Date?
date allow to be selected.
minimumDate val minimumDate: Date?
date allow to be selected.
onClear val onClear: () -> Unit
callback that is called when the user requests the picker to be clear up.
onConfirm val onConfirm: (Date) -> Unit
callback that is called when the date is selected.
title val title: String
of the dialog.
type val type: Type
indicate which Type of selection de user wants.