shouldInterceptFetchRequest method
Event fired when a request is sent to a server through Fetch API. It gives the host application a chance to take control over the request before sending it.
fetchRequest
represents a resource request.
NOTE: In order to be able to listen this event, you need to set InAppWebViewOptions.useShouldInterceptFetchRequest
option to true
.
Implementation
Future<FetchRequest?>? shouldInterceptFetchRequest(
FetchRequest fetchRequest) {
return null;
}