Package apple.uikit.protocol
Interface UICalendarSelectionSingleDateDelegate
-
public interface UICalendarSelectionSingleDateDelegateAPI-Since: 16.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleandateSelectionCanSelectDate(@NotNull UICalendarSelectionSingleDate selection, @Nullable NSDateComponents dateComponents)Determines if a date is selectable.voiddateSelectionDidSelectDate(@NotNull UICalendarSelectionSingleDate selection, @Nullable NSDateComponents dateComponents)Called after the user selects a date in the calendar view.
-
-
-
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 UICalendarSelectionMultiDatedateComponents- 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 UICalendarSelectionMultiDatedateComponents- The date that was selected by the user. @c dateComponents can be @c nil when the selected date is deselected by the user.
-
-