updated iosOnNavigationResponse docs

This commit is contained in:
Lorenzo Pichilli 2021-02-10 02:35:07 +01:00
parent 2cd0948620
commit f01e3c849d
2 changed files with 3 additions and 2 deletions

View File

@ -719,7 +719,7 @@ Event names that starts with `android` or `ios` are events platform-specific.
* `androidOnReceivedLoginRequest`: Event fired when a request to automatically log in the user has been processed (available only on Android).
* `iosOnWebContentProcessDidTerminate`: Invoked when the web view's web content process is terminated (available only on iOS).
* `iosOnDidReceiveServerRedirectForProvisionalNavigation`: Called when a web view receives a server redirect (available only on iOS).
* `iosOnNavigationResponse`: Called when a web view asks for permission to navigate to new content after the response to the navigation request is known (available only on iOS).
* `iosOnNavigationResponse`: Called when a web view asks for permission to navigate to new content after the response to the navigation request is known (available only on iOS). To use this event, the `useOnNavigationResponse` iOS-specific option must be `true`.
* `iosShouldAllowDeprecatedTLS`: Called when a web view asks whether to continue with a connection that uses a deprecated version of TLS (v1.0 and v1.1) (available only on iOS).
### `ContextMenu` class

View File

@ -608,7 +608,8 @@ abstract class WebView {
///
///[navigationResponse] represents the navigation response.
///
///**NOTE**: available only on iOS.
///**NOTE**: available only on iOS. In order to be able to listen this event, you need to set [IOSInAppWebViewOptions.useOnNavigationResponse] option to `true`.
///
///
///**Official iOS API**: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455643-webview
final Future<IOSNavigationResponseAction?> Function(InAppWebViewController controller,