#import <WebFrameLoadDelegate.h>
◆ webView:didCancelClientRedirectForFrame:()
- (void WebFrameLoadDelegate) webView: |
|
(WebView *) |
sender |
didCancelClientRedirectForFrame: |
|
(WebFrame *) |
frame |
|
|
| |
|
optional |
webView:didCancelClientRedirectForFrame: Notifies the delegate that a pending client-side redirect has been cancelled
- Parameters
-
sender | The WebView sending the message |
frame | The frame for which the pending redirect was cancelled A client-side redirect can be cancelled if a frame changes location before the timeout. |
◆ webView:didChangeLocationWithinPageForFrame:()
- (void WebFrameLoadDelegate) webView: |
|
(WebView *) |
sender |
didChangeLocationWithinPageForFrame: |
|
(WebFrame *) |
frame |
|
|
| |
|
optional |
webView:didChangeLocationWithinPageForFrame: Notifies the delegate that the scroll position in a frame has changed
- Parameters
-
sender | The WebView sending the message |
frame | The frame that scrolled This method is called when anchors within a page have been clicked. |
◆ webView:didClearWindowObject:forFrame:()
webView:didClearWindowObject:forFrame: Notifies the delegate that the JavaScript window object in a frame has been cleared in preparation for a new load. This is the preferred place to set custom properties on the window object using the WebScriptObject and JavaScriptCore APIs.
- Parameters
-
webView | The webView sending the message. |
windowObject | The WebScriptObject representing the frame's JavaScript window object. |
frame | The WebFrame to which windowObject belongs. If a delegate implements both webView:didClearWindowObject:forFrame: and webView:windowScriptObjectAvailable:, only webView:didClearWindowObject:forFrame: will be invoked. This enables a delegate to implement both methods for backwards compatibility with older versions of WebKit. |
◆ webView:didCommitLoadForFrame:()
- (void WebFrameLoadDelegate) webView: |
|
(WebView *) |
sender |
didCommitLoadForFrame: |
|
(WebFrame *) |
frame |
|
|
| |
|
optional |
webView:didCommitLoadForFrame: Notifies the delegate that the load has changed from provisional to committed
- Parameters
-
sender | The WebView sending the message |
frame | The frame for which the load has committed This method is called after the provisional data source has become the committed data source. |
In some cases, a single load may be committed more than once. This happens in the case of multipart/x-mixed-replace, also known as "server push". In this case, a single location change leads to multiple documents that are loaded in sequence. When this happens, a new commit will be sent for each document.
◆ webView:didFailLoadWithError:forFrame:()
- (void WebFrameLoadDelegate) webView: |
|
(WebView *) |
sender |
didFailLoadWithError: |
|
(NSError *) |
error |
forFrame: |
|
(WebFrame *) |
frame |
|
|
| |
|
optional |
webView:didFailLoadWithError:forFrame: Notifies the delegate that the committed load of a frame has failed
- Parameters
-
sender | The WebView sending the message |
error | The error that occurred |
frame | The frame that failed to load This method is called after a data source has committed but failed to completely load. |
◆ webView:didFailProvisionalLoadWithError:forFrame:()
- (void WebFrameLoadDelegate) webView: |
|
(WebView *) |
sender |
didFailProvisionalLoadWithError: |
|
(NSError *) |
error |
forFrame: |
|
(WebFrame *) |
frame |
|
|
| |
|
optional |
webView:didFailProvisionalLoadWithError:forFrame: Notifies the delegate that the provisional load has failed
- Parameters
-
sender | The WebView sending the message |
error | The error that occurred |
frame | The frame for which the error occurred This method is called after the provisional data source has failed to load. The frame will continue to display the contents of the committed data source if there is one. |
◆ webView:didFinishLoadForFrame:()
- (void WebFrameLoadDelegate) webView: |
|
(WebView *) |
sender |
didFinishLoadForFrame: |
|
(WebFrame *) |
frame |
|
|
| |
|
optional |
webView:didFinishLoadForFrame: Notifies the delegate that the committed load of a frame has completed
- Parameters
-
sender | The WebView sending the message |
frame | The frame that finished loading This method is called after the committed data source of a frame has successfully loaded and will only be called when all subresources such as images and stylesheets are done loading. Plug-In content and JavaScript-requested loads may occur after this method is called. |
◆ webView:didReceiveIcon:forFrame:()
webView:didReceiveIcon:forFrame: Notifies the delegate that a page icon image for a frame has been received
- Parameters
-
webView | The WebView sending the message |
image | The icon image. Also known as a "favicon". |
frame | The frame for which a page icon has been received |
◆ webView:didReceiveServerRedirectForProvisionalLoadForFrame:()
- (void WebFrameLoadDelegate) webView: |
|
(WebView *) |
sender |
didReceiveServerRedirectForProvisionalLoadForFrame: |
|
(WebFrame *) |
frame |
|
|
| |
|
optional |
webView:didReceiveServerRedirectForProvisionalLoadForFrame: Notifies the delegate that a server redirect occurred during the provisional load
- Parameters
-
sender | The WebView sending the message |
frame | The frame for which the redirect occurred |
◆ webView:didReceiveTitle:forFrame:()
webView:didReceiveTitle:forFrame: Notifies the delegate that the page title for a frame has been received
- Parameters
-
sender | The WebView sending the message |
title | The new page title |
frame | The frame for which the title has been received The title may update during loading; clients should be prepared for this. |
◆ webView:didStartProvisionalLoadForFrame:()
- (void WebFrameLoadDelegate) webView: |
|
(WebView *) |
sender |
didStartProvisionalLoadForFrame: |
|
(WebFrame *) |
frame |
|
|
| |
|
optional |
webView:didStartProvisionalLoadForFrame: Notifies the delegate that the provisional load of a frame has started
- Parameters
-
sender | The WebView sending the message |
frame | The frame for which the provisional load has started This method is called after the provisional data source of a frame has started to load. |
◆ webView:willCloseFrame:()
webView:willCloseFrame: Notifies the delegate that a frame will be closed
- Parameters
-
sender | The WebView sending the message |
frame | The frame that will be closed This method is called right before WebKit is done with the frame and the objects that it contains. |
◆ webView:willPerformClientRedirectToURL:delay:fireDate:forFrame:()
webView:willPerformClientRedirectToURL:delay:fireDate:forFrame: Notifies the delegate that a frame will perform a client-side redirect
- Parameters
-
sender | The WebView sending the message |
URL | The URL to be redirected to |
seconds | Seconds in which the redirect will happen |
date | The fire date |
frame | The frame on which the redirect will occur This method can be used to continue progress feedback while a client-side redirect is pending. |
◆ webView:windowScriptObjectAvailable:()
- (void WebFrameLoadDelegate) webView: |
|
(WebView *) |
webView |
windowScriptObjectAvailable: |
|
(10_4) |
|
|
|
(10_5) |
WEBKIT_DEPRECATED_MAC |
|
|
| |
|
optional |
webView:windowScriptObjectAvailable: Notifies the delegate that the scripting object for a page is available. This is called before the page is loaded. It may be useful to allow delegates to bind native objects to the window.
- Parameters
-
webView | The webView sending the message. |
windowScriptObject | The WebScriptObject for the window in the scripting environment. This method is deprecated. Consider using webView:didClearWindowObject:forFrame: instead. |
The documentation for this protocol was generated from the following file: