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ยง
unsafe fn webView_identifierForInitialRequest_fromDataSource( &self, sender: Option<&WebView>, request: Option<&NSURLRequest>, data_source: Option<&WebDataSource> ) -> Option<Retained<AnyObject>>
๐Deprecated
Available on crate feature
WebDataSource
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.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>>
๐Deprecated
Available on crate feature
WebDataSource
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_resource_didReceiveAuthenticationChallenge_fromDataSource( &self, sender: Option<&WebView>, identifier: Option<&AnyObject>, challenge: Option<&NSURLAuthenticationChallenge>, data_source: Option<&WebDataSource> )
๐Deprecated
Available on crate feature
WebDataSource
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_resource_didCancelAuthenticationChallenge_fromDataSource( &self, sender: Option<&WebView>, identifier: Option<&AnyObject>, challenge: Option<&NSURLAuthenticationChallenge>, data_source: Option<&WebDataSource> )
๐Deprecated
Available on crate feature
WebDataSource
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_resource_didReceiveResponse_fromDataSource( &self, sender: Option<&WebView>, identifier: Option<&AnyObject>, response: Option<&NSURLResponse>, data_source: Option<&WebDataSource> )
๐Deprecated
Available on crate feature
WebDataSource
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_resource_didReceiveContentLength_fromDataSource( &self, sender: Option<&WebView>, identifier: Option<&AnyObject>, length: NSInteger, data_source: Option<&WebDataSource> )
๐Deprecated
Available on crate feature
WebDataSource
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_resource_didFinishLoadingFromDataSource( &self, sender: Option<&WebView>, identifier: Option<&AnyObject>, data_source: Option<&WebDataSource> )
๐Deprecated
Available on crate feature
WebDataSource
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_resource_didFailLoadingWithError_fromDataSource( &self, sender: Option<&WebView>, identifier: Option<&AnyObject>, error: Option<&NSError>, data_source: Option<&WebDataSource> )
๐Deprecated
Available on crate feature
WebDataSource
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.unsafe fn webView_plugInFailedWithError_dataSource( &self, sender: Option<&WebView>, error: Option<&NSError>, data_source: Option<&WebDataSource> )
๐Deprecated
Available on crate feature
WebDataSource
and crate feature WebView
and crate feature objc2-app-kit
and macOS only.