Package 

Class TimePickerKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit TimePicker(Function1<LocalTime, Unit> onTimeConfirm, Modifier modifier, LocalTime time, Boolean showSeconds) A full screen TimePicker with hours, minutes and seconds.
      final static Unit TimePickerWith12HourClock(Function1<LocalTime, Unit> onTimeConfirm, Modifier modifier, LocalTime time) A full screen TimePicker with hours and minutes and AM/PM selector.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • TimePicker

        @Composable() final static Unit TimePicker(Function1<LocalTime, Unit> onTimeConfirm, Modifier modifier, LocalTime time, Boolean showSeconds)

        A full screen TimePicker with hours, minutes and seconds.

        This component is designed to take most/all of the screen and utilizes large fonts. In order to ensure that it will draw properly on smaller screens it does not take account of user font size overrides for MaterialTheme.typography.display3 which is used to display the main picker value.

        Parameters:
        onTimeConfirm - the button event handler.
        modifier - the modifiers for the Box containing the UI elements.
        time - the initial value to seed the picker with.
        showSeconds - flag to indicate whether to show seconds as well as hours and minutes.
      • TimePickerWith12HourClock

        @Composable() final static Unit TimePickerWith12HourClock(Function1<LocalTime, Unit> onTimeConfirm, Modifier modifier, LocalTime time)

        A full screen TimePicker with hours and minutes and AM/PM selector.

        This component is designed to take most/all of the screen and utilizes large fonts. In order to ensure that it will draw properly on smaller screens it does not take account of user font size overrides for MaterialTheme.typography.display1 which is used to display the main picker value.

        Parameters:
        onTimeConfirm - the button event handler.
        modifier - the modifiers for the Column containing the UI elements.
        time - the initial value to seed the picker with.