UICalendarViewDelegate

Trait UICalendarViewDelegate 

Source
pub unsafe trait UICalendarViewDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn calendarView_decorationForDateComponents(
        &self,
        calendar_view: &UICalendarView,
        date_components: &NSDateComponents,
    ) -> Option<Retained<UICalendarViewDecoration>>
       where Self: Sized + Message { ... }
    fn calendarView_didChangeVisibleDateComponentsFrom(
        &self,
        calendar_view: &UICalendarView,
        previous_date_components: &NSDateComponents,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UICalendarView only.
Expand description

Provided Methods§

Source

fn calendarView_decorationForDateComponents( &self, calendar_view: &UICalendarView, date_components: &NSDateComponents, ) -> Option<Retained<UICalendarViewDecoration>>
where Self: Sized + Message,

Available on crate features UICalendarViewDecoration and UIResponder and UIView only.

Called when the calendar view is preparing decorations.

Parameter calendarView: The UICalendarView Parameter dateComponents: The date for which the decoration is prepared for.

Returns: A UICalendarViewDecorationto annotate the specific date. Return nilfor no decoration.

Source

fn calendarView_didChangeVisibleDateComponentsFrom( &self, calendar_view: &UICalendarView, previous_date_components: &NSDateComponents, )
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.

Called when the visible date has changed from previousDateComponentsfrom user interaction.

Parameter calendarView: The UICalendarView Parameter previousDateComponents: The previous date components before the visible date components changed.

Trait Implementations§

Source§

impl ProtocolType for dyn UICalendarViewDelegate

Source§

const NAME: &'static str = "UICalendarViewDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn UICalendarViewDelegate

Implementations on Foreign Types§

Source§

impl<T> UICalendarViewDelegate for ProtocolObject<T>

Implementors§