Trait objc2_web_kit::WebResourceLoadDelegate

source ยท
pub unsafe trait WebResourceLoadDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn webView_identifierForInitialRequest_fromDataSource(
        &self,
        sender: Option<&WebView>,
        request: Option<&NSURLRequest>,
        data_source: Option<&WebDataSource>
    ) -> Option<Retained<AnyObject>>
       where Self: Sized + Message { ... }
    unsafe fn webView_resource_willSendRequest_redirectResponse_fromDataSource(
        &self,
        sender: Option<&WebView>,
        identifier: Option<&AnyObject>,
        request: Option<&NSURLRequest>,
        redirect_response: Option<&NSURLResponse>,
        data_source: Option<&WebDataSource>
    ) -> Option<Retained<NSURLRequest>>
       where Self: Sized + Message { ... }
    unsafe fn webView_resource_didReceiveAuthenticationChallenge_fromDataSource(
        &self,
        sender: Option<&WebView>,
        identifier: Option<&AnyObject>,
        challenge: Option<&NSURLAuthenticationChallenge>,
        data_source: Option<&WebDataSource>
    )
       where Self: Sized + Message { ... }
    unsafe fn webView_resource_didCancelAuthenticationChallenge_fromDataSource(
        &self,
        sender: Option<&WebView>,
        identifier: Option<&AnyObject>,
        challenge: Option<&NSURLAuthenticationChallenge>,
        data_source: Option<&WebDataSource>
    )
       where Self: Sized + Message { ... }
    unsafe fn webView_resource_didReceiveResponse_fromDataSource(
        &self,
        sender: Option<&WebView>,
        identifier: Option<&AnyObject>,
        response: Option<&NSURLResponse>,
        data_source: Option<&WebDataSource>
    )
       where Self: Sized + Message { ... }
    unsafe fn webView_resource_didReceiveContentLength_fromDataSource(
        &self,
        sender: Option<&WebView>,
        identifier: Option<&AnyObject>,
        length: NSInteger,
        data_source: Option<&WebDataSource>
    )
       where Self: Sized + Message { ... }
    unsafe fn webView_resource_didFinishLoadingFromDataSource(
        &self,
        sender: Option<&WebView>,
        identifier: Option<&AnyObject>,
        data_source: Option<&WebDataSource>
    )
       where Self: Sized + Message { ... }
    unsafe fn webView_resource_didFailLoadingWithError_fromDataSource(
        &self,
        sender: Option<&WebView>,
        identifier: Option<&AnyObject>,
        error: Option<&NSError>,
        data_source: Option<&WebDataSource>
    )
       where Self: Sized + Message { ... }
    unsafe fn webView_plugInFailedWithError_dataSource(
        &self,
        sender: Option<&WebView>,
        error: Option<&NSError>,
        data_source: Option<&WebDataSource>
    )
       where Self: Sized + Message { ... }
}
๐Ÿ‘ŽDeprecated
Available on crate feature WebResourceLoadDelegate only.

Provided Methodsยง

source

unsafe fn webView_identifierForInitialRequest_fromDataSource( &self, sender: Option<&WebView>, request: Option<&NSURLRequest>, data_source: Option<&WebDataSource> ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebDataSource and crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_resource_willSendRequest_redirectResponse_fromDataSource( &self, sender: Option<&WebView>, identifier: Option<&AnyObject>, request: Option<&NSURLRequest>, redirect_response: Option<&NSURLResponse>, data_source: Option<&WebDataSource> ) -> Option<Retained<NSURLRequest>>
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebDataSource and crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_resource_didReceiveAuthenticationChallenge_fromDataSource( &self, sender: Option<&WebView>, identifier: Option<&AnyObject>, challenge: Option<&NSURLAuthenticationChallenge>, data_source: Option<&WebDataSource> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebDataSource and crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_resource_didCancelAuthenticationChallenge_fromDataSource( &self, sender: Option<&WebView>, identifier: Option<&AnyObject>, challenge: Option<&NSURLAuthenticationChallenge>, data_source: Option<&WebDataSource> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebDataSource and crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_resource_didReceiveResponse_fromDataSource( &self, sender: Option<&WebView>, identifier: Option<&AnyObject>, response: Option<&NSURLResponse>, data_source: Option<&WebDataSource> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebDataSource and crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_resource_didReceiveContentLength_fromDataSource( &self, sender: Option<&WebView>, identifier: Option<&AnyObject>, length: NSInteger, data_source: Option<&WebDataSource> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebDataSource and crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_resource_didFinishLoadingFromDataSource( &self, sender: Option<&WebView>, identifier: Option<&AnyObject>, data_source: Option<&WebDataSource> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebDataSource and crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_resource_didFailLoadingWithError_fromDataSource( &self, sender: Option<&WebView>, identifier: Option<&AnyObject>, error: Option<&NSError>, data_source: Option<&WebDataSource> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebDataSource and crate feature WebView and crate feature objc2-app-kit and macOS only.
source

unsafe fn webView_plugInFailedWithError_dataSource( &self, sender: Option<&WebView>, error: Option<&NSError>, data_source: Option<&WebDataSource> )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated
Available on crate feature WebDataSource and crate feature WebView and crate feature objc2-app-kit and macOS only.

Trait Implementationsยง

sourceยง

impl ProtocolType for dyn WebResourceLoadDelegate

sourceยง

const NAME: &'static str = "WebResourceLoadDelegate"

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 WebResourceLoadDelegate

Implementations on Foreign Typesยง

sourceยง

impl<T> WebResourceLoadDelegate for ProtocolObject<T>

Implementorsยง