getCacheMode method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'ServiceWorkerWebSettingsCompat.getCacheMode', apiUrl: 'https://developer.android.com/reference/androidx/webkit/ServiceWorkerWebSettingsCompat#getCacheMode()')])
Future<CacheMode?> getCacheMode()

Gets the current setting for overriding the cache mode. This method should only be called if WebViewFeature.isFeatureSupported returns true for WebViewFeature.SERVICE_WORKER_CACHE_MODE.

Officially Supported Platforms/Implementations:

Use the PlatformServiceWorkerController.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'ServiceWorkerWebSettingsCompat.getCacheMode',
      apiUrl:
          'https://developer.android.com/reference/androidx/webkit/ServiceWorkerWebSettingsCompat#getCacheMode()',
    ),
  ],
)
Future<CacheMode?> getCacheMode() {
  throw UnimplementedError(
    'getCacheMode is not implemented on the current platform',
  );
}