reloadFromOrigin method
- @SupportedPlatforms.new(platforms: [IOSPlatform(apiName: 'WKWebView.reloadFromOrigin', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebview/1414956-reloadfromorigin'), MacOSPlatform(apiName: 'WKWebView.reloadFromOrigin', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebview/1414956-reloadfromorigin'), LinuxPlatform(apiName: 'webkit_web_view_reload_bypass_cache', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebView.reload_bypass_cache.html')])
Reloads the current page, performing end-to-end revalidation using cache-validating conditionals if possible.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - WKWebView.reloadFromOrigin)
- macOS WKWebView (Official API - WKWebView.reloadFromOrigin)
- Linux WPE WebKit (Official API - webkit_web_view_reload_bypass_cache)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
IOSPlatform(
apiName: 'WKWebView.reloadFromOrigin',
apiUrl:
'https://developer.apple.com/documentation/webkit/wkwebview/1414956-reloadfromorigin',
),
MacOSPlatform(
apiName: 'WKWebView.reloadFromOrigin',
apiUrl:
'https://developer.apple.com/documentation/webkit/wkwebview/1414956-reloadfromorigin',
),
LinuxPlatform(
apiName: 'webkit_web_view_reload_bypass_cache',
apiUrl:
'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebView.reload_bypass_cache.html',
),
],
)
Future<void> reloadFromOrigin() {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.reloadFromOrigin.name} is not implemented on the current platform',
);
}