Skip to main content

UIWebViewDelegate

Trait UIWebViewDelegate 

Source
pub unsafe trait UIWebViewDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn webView_shouldStartLoadWithRequest_navigationType(
        &self,
        web_view: &UIWebView,
        request: &NSURLRequest,
        navigation_type: UIWebViewNavigationType,
    ) -> bool
       where Self: Sized + Message { ... }
    fn webViewDidStartLoad(&self, web_view: &UIWebView)
       where Self: Sized + Message { ... }
    fn webViewDidFinishLoad(&self, web_view: &UIWebView)
       where Self: Sized + Message { ... }
    fn webView_didFailLoadWithError(
        &self,
        web_view: &UIWebView,
        error: &NSError,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UIWebView only.
Expand description

Provided Methods§

Source

fn webView_shouldStartLoadWithRequest_navigationType( &self, web_view: &UIWebView, request: &NSURLRequest, navigation_type: UIWebViewNavigationType, ) -> bool
where Self: Sized + Message,

👎Deprecated:

No longer supported.

Available on crate features UIResponder and UIView only.
Source

fn webViewDidStartLoad(&self, web_view: &UIWebView)
where Self: Sized + Message,

👎Deprecated:

No longer supported.

Available on crate features UIResponder and UIView only.
Source

fn webViewDidFinishLoad(&self, web_view: &UIWebView)
where Self: Sized + Message,

👎Deprecated:

No longer supported.

Available on crate features UIResponder and UIView only.
Source

fn webView_didFailLoadWithError(&self, web_view: &UIWebView, error: &NSError)
where Self: Sized + Message,

👎Deprecated:

No longer supported.

Available on crate features UIResponder and UIView only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIWebViewDelegate

Source§

impl ProtocolType for dyn UIWebViewDelegate

Source§

const NAME: &'static str = "UIWebViewDelegate"

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

Implementors§