Trait objc2_ui_kit::UIActionSheetDelegate

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

Provided Methods§

source

unsafe 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

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

👎Deprecated: Use UIAlertController instead.
Available on crate features UIResponder and UIView only.
source

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

👎Deprecated: Use UIAlertController instead.
Available on crate features UIResponder and UIView only.
source

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

👎Deprecated: Use UIAlertController instead.
Available on crate features UIResponder and UIView only.
source

unsafe 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

unsafe 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 ProtocolType for dyn UIActionSheetDelegate

source§

const NAME: &'static str = "UIActionSheetDelegate"

The name of the Objective-C protocol that this type represents.
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 UIActionSheetDelegate

Implementations on Foreign Types§

source§

impl<T> UIActionSheetDelegate for ProtocolObject<T>

Implementors§

source§

impl UIActionSheetDelegate for UIDocumentInteractionController

Available on crate feature UIDocumentInteractionController only.