#import <WebPolicyDelegate.h>
◆ webView:decidePolicyForMIMEType:request:frame:decisionListener:()
webView:decidePolicyForMIMEType:request:frame: Returns the policy for content which has been partially loaded. Sent after webView:didStartProvisionalLoadForFrame: is sent on the WebFrameLoadDelegate.
- Parameters
-
type | MIME type for the resource. |
request | A NSURLRequest for the partially loaded content. |
frame | The frame which is loading the URL. |
listener | The object to call when the decision is made |
◆ webView:decidePolicyForNavigationAction:request:frame:decisionListener:()
webView:decidePolicyForNavigationAction:request:frame:decisionListener: This method is called to decide what to do with a proposed navigation.
- Parameters
-
actionInformation | Dictionary that describes the action that triggered this navigation. |
request | The request for the proposed navigation |
frame | The WebFrame in which the navigation is happening |
listener | The object to call when the decision is made This method will be called before loading starts, and on every redirect. |
◆ webView:decidePolicyForNewWindowAction:request:newFrameName:decisionListener:()
webView:decidePolicyForNewWindowAction:request:newFrameName:decisionListener: This method is called to decide what to do with an targetted nagivation that would open a new window.
- Parameters
-
actionInformation | Dictionary that describes the action that triggered this navigation. |
request | The request for the proposed navigation |
frameName | The frame in which the navigation is taking place |
listener | The object to call when the decision is made This method is provided so that modified clicks on a targetted link which opens a new frame can prevent the new window from being opened if they decide to do something else, like download or present the new frame in a specialized way. |
If this method picks a policy of Use, the new window will be opened, and decidePolicyForNavigationAction:request:frame:decisionListner: will be called with a WebNavigationType of WebNavigationTypeOther in its action. This is to avoid possible confusion about the modifiers.
◆ webView:unableToImplementPolicyWithError:frame:()
- (void WebPolicyDelegate) webView: |
|
(WebView *) |
webView |
unableToImplementPolicyWithError: |
|
(NSError *) |
error |
frame: |
|
(WebFrame *) |
frame |
|
|
| |
|
optional |
webView:unableToImplementPolicy:error:forURL:inFrame: Called when a WebPolicy could not be implemented. It is up to the client to display appropriate feedback.
- Parameters
-
error | The error that caused the policy to not be implemented. |
frame | The frame in which the policy could not be implemented. |
The documentation for this protocol was generated from the following file: