Flutter拦截来自WebView的所有请求
Flutter Intercept all requests from WebView
flutter 中是否有任何等效的拦截来自 webview 的所有请求
webview.webViewClient = object : WebViewClient() {
override fun shouldInterceptRequest(view: WebView?,request: WebResourceRequest? ): WebResourceResponse? {
return super.shouldInterceptRequest(view, request)}}
谢谢
https://pub.dev/packages/flutter_inappwebview
useShouldInterceptFetchRequest 函数应该有帮助!
flutter 中是否有任何等效的拦截来自 webview 的所有请求
webview.webViewClient = object : WebViewClient() {
override fun shouldInterceptRequest(view: WebView?,request: WebResourceRequest? ): WebResourceResponse? {
return super.shouldInterceptRequest(view, request)}}
谢谢
https://pub.dev/packages/flutter_inappwebview
useShouldInterceptFetchRequest 函数应该有帮助!