Trait objc2_ui_kit::UIAlertViewDelegate

source ยท
pub unsafe trait UIAlertViewDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn alertView_clickedButtonAtIndex(
        &self,
        alert_view: &UIAlertView,
        button_index: NSInteger
    )
       where Self: Sized + Message { ... }
    unsafe fn alertViewCancel(&self, alert_view: &UIAlertView)
       where Self: Sized + Message { ... }
    unsafe fn willPresentAlertView(&self, alert_view: &UIAlertView)
       where Self: Sized + Message { ... }
    unsafe fn didPresentAlertView(&self, alert_view: &UIAlertView)
       where Self: Sized + Message { ... }
    unsafe fn alertView_willDismissWithButtonIndex(
        &self,
        alert_view: &UIAlertView,
        button_index: NSInteger
    )
       where Self: Sized + Message { ... }
    unsafe fn alertView_didDismissWithButtonIndex(
        &self,
        alert_view: &UIAlertView,
        button_index: NSInteger
    )
       where Self: Sized + Message { ... }
    unsafe fn alertViewShouldEnableFirstOtherButton(
        &self,
        alert_view: &UIAlertView
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature UIAlertView only.

Provided Methodsยง

source

unsafe fn alertView_clickedButtonAtIndex( &self, alert_view: &UIAlertView, button_index: NSInteger )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated: Use UIAlertController instead.
Available on crate features UIResponder and UIView only.
source

unsafe fn alertViewCancel(&self, alert_view: &UIAlertView)
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated: Use UIAlertController instead.
Available on crate features UIResponder and UIView only.
source

unsafe fn willPresentAlertView(&self, alert_view: &UIAlertView)
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated: Use UIAlertController instead.
Available on crate features UIResponder and UIView only.
source

unsafe fn didPresentAlertView(&self, alert_view: &UIAlertView)
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated: Use UIAlertController instead.
Available on crate features UIResponder and UIView only.
source

unsafe fn alertView_willDismissWithButtonIndex( &self, alert_view: &UIAlertView, button_index: NSInteger )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated: Use UIAlertController instead.
Available on crate features UIResponder and UIView only.
source

unsafe fn alertView_didDismissWithButtonIndex( &self, alert_view: &UIAlertView, button_index: NSInteger )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated: Use UIAlertController instead.
Available on crate features UIResponder and UIView only.
source

unsafe fn alertViewShouldEnableFirstOtherButton( &self, alert_view: &UIAlertView ) -> bool
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated: Use UIAlertController instead.
Available on crate features UIResponder and UIView only.

Trait Implementationsยง

sourceยง

impl ProtocolType for dyn UIAlertViewDelegate

sourceยง

const NAME: &'static str = "UIAlertViewDelegate"

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 UIAlertViewDelegate

Implementations on Foreign Typesยง

sourceยง

impl<T> UIAlertViewDelegate for ProtocolObject<T>

Implementorsยง