Interface UICalendarSelectionSingleDateDelegate


  • public interface UICalendarSelectionSingleDateDelegate
    API-Since: 16.0
    • Method Detail

      • dateSelectionCanSelectDate

        default boolean dateSelectionCanSelectDate​(@NotNull
                                                   @NotNull UICalendarSelectionSingleDate selection,
                                                   @Nullable
                                                   @Nullable NSDateComponents dateComponents)
        Determines if a date is selectable. Dates that are not selectable will be disabled in the calendar view. By default, @c dateSelection:canSelectDate: returns YES if dateComponents is non-nil.
        Parameters:
        selection - The @c UICalendarSelectionMultiDate
        dateComponents - The date to be checked by selection; a @c nil date represents a deselected date.
        Returns:
        YES if the date can be selected, NO otherwise.
      • dateSelectionDidSelectDate

        void dateSelectionDidSelectDate​(@NotNull
                                        @NotNull UICalendarSelectionSingleDate selection,
                                        @Nullable
                                        @Nullable NSDateComponents dateComponents)
        Called after the user selects a date in the calendar view.
        Parameters:
        selection - The @c UICalendarSelectionMultiDate
        dateComponents - The date that was selected by the user. @c dateComponents can be @c nil when the selected date is deselected by the user.