Skip to main content

UICalendarSelectionMultiDateDelegate

Trait UICalendarSelectionMultiDateDelegate 

Source
pub unsafe trait UICalendarSelectionMultiDateDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn multiDateSelection_didSelectDate(
        &self,
        selection: &UICalendarSelectionMultiDate,
        date_components: &NSDateComponents,
    )
       where Self: Sized + Message { ... }
    fn multiDateSelection_didDeselectDate(
        &self,
        selection: &UICalendarSelectionMultiDate,
        date_components: &NSDateComponents,
    )
       where Self: Sized + Message { ... }
    fn multiDateSelection_canSelectDate(
        &self,
        selection: &UICalendarSelectionMultiDate,
        date_components: &NSDateComponents,
    ) -> bool
       where Self: Sized + Message { ... }
    fn multiDateSelection_canDeselectDate(
        &self,
        selection: &UICalendarSelectionMultiDate,
        date_components: &NSDateComponents,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature UICalendarSelectionMultiDate only.
Expand description

Provided Methods§

Source

fn multiDateSelection_didSelectDate( &self, selection: &UICalendarSelectionMultiDate, date_components: &NSDateComponents, )
where Self: Sized + Message,

Available on crate feature UICalendarSelection only.

Called after the user selects a date in the calendar view.

Parameter selection: The UICalendarSelectionMultiDate Parameter dateComponents: The date that was selected by the user.

Source

fn multiDateSelection_didDeselectDate( &self, selection: &UICalendarSelectionMultiDate, date_components: &NSDateComponents, )
where Self: Sized + Message,

Available on crate feature UICalendarSelection only.

Called after the user removes selection from one of hte selected dates the calendar view.

Parameter selection: The UICalendarSelectionMultiDate Parameter dateComponents: The date that was deselected by the user.

Source

fn multiDateSelection_canSelectDate( &self, selection: &UICalendarSelectionMultiDate, date_components: &NSDateComponents, ) -> bool
where Self: Sized + Message,

Available on crate feature UICalendarSelection only.

Determines if a date is selectable. Dates that are not selectable will be disabled in the calendar view.

Parameter selection: The UICalendarSelectionMultiDate Parameter dateComponents: The date to be checked by selection.

Returns: YES if the date can be selected, NO otherwise.

Source

fn multiDateSelection_canDeselectDate( &self, selection: &UICalendarSelectionMultiDate, date_components: &NSDateComponents, ) -> bool
where Self: Sized + Message,

Available on crate feature UICalendarSelection only.

Determines if a date can be deselected.

Parameter selection: The UICalendarSelectionMultiDate Parameter dateComponents: The date to be checked by selection.

Returns: YES if the date can be deselected, NO otherwise.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UICalendarSelectionMultiDateDelegate

Source§

impl ProtocolType for dyn UICalendarSelectionMultiDateDelegate

Source§

const NAME: &'static str = "UICalendarSelectionMultiDateDelegate"

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UICalendarSelectionMultiDateDelegate for ProtocolObject<T>

Implementors§