Interface UICalendarViewDelegate


  • public interface UICalendarViewDelegate
    API-Since: 16.0
    • 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 UICalendarView
        dateComponents - 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 UICalendarView
        previousDateComponents - The previous date components before the visible date components changed. API-Since: 16.2