tripkit-android / com.skedgo.tripkit.ui.dialog / TripKitDateTimePickerDialogFragment

TripKitDateTimePickerDialogFragment

class TripKitDateTimePickerDialogFragment : DialogFragment, OnTimeChangedListener

A DialogFragment which allows a user to set a time and choose whether it is a departure time or an arrival time.

    DialogFragment fragment = TripKitDateTimePickerDialogFragment.Builder()
                                .withLocations(toLocation, fromLocation)
                                .withTimeTag(timeTagForQuery)
                                .build();

    fragment.show(supportFragmentManager, "timePicker")

Types

Name Summary
Builder Used to create a new instance of the fragment.class Builder
OnTimeSelectedListener Interface definition for a callback to be invoked when a time is selected.interface OnTimeSelectedListener

Constructors

Name Summary
<init> A DialogFragment which allows a user to set a time and choose whether it is a departure time or an arrival time.TripKitDateTimePickerDialogFragment()

Functions

Name Summary
setOnTimeSelectedListener fun setOnTimeSelectedListener(listener: OnTimeSelectedListener):Unit
fun setOnTimeSelectedListener(listener: (TimeTag) ->Unit):Unit