Package apple.uikit.protocol
Interface UICalendarViewDelegate
-
public interface UICalendarViewDelegateAPI-Since: 16.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default @Nullable UICalendarViewDecorationcalendarViewDecorationForDateComponents(@NotNull UICalendarView calendarView, @NotNull NSDateComponents dateComponents)Called when the calendar view is preparing decorations.default voidcalendarViewDidChangeVisibleDateComponentsFrom(@NotNull UICalendarView calendarView, @NotNull NSDateComponents previousDateComponents)Called when the visible date has changed from @c previousDateComponents from user interaction.
-
-
-
Method Detail
-
calendarViewDecorationForDateComponents
@Nullable default @Nullable UICalendarViewDecoration calendarViewDecorationForDateComponents(@NotNull @NotNull UICalendarView calendarView, @NotNull @NotNull NSDateComponents dateComponents)
Called when the calendar view is preparing decorations.- Parameters:
calendarView- The @c UICalendarViewdateComponents- The date for which the decoration is prepared for.- Returns:
- A @c UICalendarViewDecoration to annotate the specific date. Return @c nil for no decoration.
-
calendarViewDidChangeVisibleDateComponentsFrom
default void calendarViewDidChangeVisibleDateComponentsFrom(@NotNull @NotNull UICalendarView calendarView, @NotNull @NotNull NSDateComponents previousDateComponents)Called when the visible date has changed from @c previousDateComponents from user interaction.- Parameters:
calendarView- The @c UICalendarViewpreviousDateComponents- The previous date components before the visible date components changed. API-Since: 16.2
-
-