Skip to main content

UIActionSheetDelegate

Trait UIActionSheetDelegate 

Source
pub unsafe trait UIActionSheetDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn actionSheet_clickedButtonAtIndex(
        &self,
        action_sheet: &UIActionSheet,
        button_index: NSInteger,
    )
       where Self: Sized + Message { ... }
    fn actionSheetCancel(&self, action_sheet: &UIActionSheet)
       where Self: Sized + Message { ... }
    fn willPresentActionSheet(&self, action_sheet: &UIActionSheet)
       where Self: Sized + Message { ... }
    fn didPresentActionSheet(&self, action_sheet: &UIActionSheet)
       where Self: Sized + Message { ... }
    fn actionSheet_willDismissWithButtonIndex(
        &self,
        action_sheet: &UIActionSheet,
        button_index: NSInteger,
    )
       where Self: Sized + Message { ... }
    fn actionSheet_didDismissWithButtonIndex(
        &self,
        action_sheet: &UIActionSheet,
        button_index: NSInteger,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UIActionSheet only.
Expand description

Provided Methods§

Source

fn actionSheet_clickedButtonAtIndex( &self, action_sheet: &UIActionSheet, button_index: NSInteger, )
where Self: Sized + Message,

👎Deprecated:

Use UIAlertController instead.

Available on crate features UIResponder and UIView only.
Source

fn actionSheetCancel(&self, action_sheet: &UIActionSheet)
where Self: Sized + Message,

👎Deprecated:

Use UIAlertController instead.

Available on crate features UIResponder and UIView only.
Source

fn willPresentActionSheet(&self, action_sheet: &UIActionSheet)
where Self: Sized + Message,

👎Deprecated:

Use UIAlertController instead.

Available on crate features UIResponder and UIView only.
Source

fn didPresentActionSheet(&self, action_sheet: &UIActionSheet)
where Self: Sized + Message,

👎Deprecated:

Use UIAlertController instead.

Available on crate features UIResponder and UIView only.
Source

fn actionSheet_willDismissWithButtonIndex( &self, action_sheet: &UIActionSheet, button_index: NSInteger, )
where Self: Sized + Message,

👎Deprecated:

Use UIAlertController instead.

Available on crate features UIResponder and UIView only.
Source

fn actionSheet_didDismissWithButtonIndex( &self, action_sheet: &UIActionSheet, button_index: NSInteger, )
where Self: Sized + Message,

👎Deprecated:

Use UIAlertController instead.

Available on crate features UIResponder and UIView only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIActionSheetDelegate

Source§

impl ProtocolType for dyn UIActionSheetDelegate

Source§

const NAME: &'static str = "UIActionSheetDelegate"

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

Implementors§

Source§

impl UIActionSheetDelegate for UIDocumentInteractionController

Available on crate feature UIDocumentInteractionController only.