reloadFromOrigin method

  1. @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')])
Future<void> reloadFromOrigin()

Reloads the current page, performing end-to-end revalidation using cache-validating conditionals if possible.

Officially Supported Platforms/Implementations:

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',
  );
}