Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

shouldStartLoadWithRequest equivalent in WebKit framework?

I'm trying to looking for an equivalent implement of webView:shouldStartLoadWithRequest:navigationType: in the WebKit framework (on Mac).

I looked through WebUIDelegate & WebFrameLoadDelegate but did not find anything useful.

Any help is very much appreciated =). Thanks.

like image 831
jasondinh Avatar asked Mar 31 '26 01:03

jasondinh


1 Answers

webView:decidePolicyForNavigationAction:request:frame:decisionListener: and other related WebPolicyDelegate methods do the same thing.

If you do [listener use] in this method, it's like return YES in iOS. And vice versa: do nothing to return NO.

like image 98
Dmitry Isaev Avatar answered Apr 02 '26 09:04

Dmitry Isaev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!