Skip to main content

UIAlertViewDelegate

Trait UIAlertViewDelegate 

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

Provided Methods§

Source

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

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

👎Deprecated:

Use UIAlertController instead.

Available on crate features UIResponder and UIView only.
Source

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

👎Deprecated:

Use UIAlertController instead.

Available on crate features UIResponder and UIView only.
Source

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

👎Deprecated:

Use UIAlertController instead.

Available on crate features UIResponder and UIView only.
Source

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

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

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<T> ImplementedBy<T> for dyn UIAlertViewDelegate

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

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

Implementors§