Trait UIAlertViewDelegate

Source
pub unsafe trait UIAlertViewDelegate: NSObjectProtocol + MainThreadOnly {
    // 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.
Expand description

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. Read more
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§