Skip to main content

UICalendarSelectionWeekOfYearDelegate

Trait UICalendarSelectionWeekOfYearDelegate 

Source
pub unsafe trait UICalendarSelectionWeekOfYearDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn weekOfYearSelection_didSelectWeekOfYear(
        &self,
        selection: &UICalendarSelectionWeekOfYear,
        week_of_year_components: Option<&NSDateComponents>,
    )
       where Self: Sized + Message { ... }
    fn weekOfYearSelection_canSelectWeekOfYear(
        &self,
        selection: &UICalendarSelectionWeekOfYear,
        week_of_year_components: Option<&NSDateComponents>,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature UICalendarSelectionWeekOfYear only.
Expand description

Provided Methods§

Source

fn weekOfYearSelection_didSelectWeekOfYear( &self, selection: &UICalendarSelectionWeekOfYear, week_of_year_components: Option<&NSDateComponents>, )
where Self: Sized + Message,

Available on crate feature UICalendarSelection only.

Called after the user selects a week of year in the calendar view.

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

Source

fn weekOfYearSelection_canSelectWeekOfYear( &self, selection: &UICalendarSelectionWeekOfYear, week_of_year_components: Option<&NSDateComponents>, ) -> bool
where Self: Sized + Message,

Available on crate feature UICalendarSelection only.

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

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

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

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UICalendarSelectionWeekOfYearDelegate

Source§

impl ProtocolType for dyn UICalendarSelectionWeekOfYearDelegate

Source§

const NAME: &'static str = "UICalendarSelectionWeekOfYearDelegate"

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> UICalendarSelectionWeekOfYearDelegate for ProtocolObject<T>

Implementors§