getBlockNetworkLoads method

Future<bool> getBlockNetworkLoads()

Gets whether Service Workers are prohibited from loading any resources from the network. This method should only be called if WebViewFeature.isFeatureSupported returns true for WebViewFeature.SERVICE_WORKER_BLOCK_NETWORK_LOADS.

NOTE: available on Android 24+.

Official Android API: https://developer.android.com/reference/androidx/webkit/ServiceWorkerWebSettingsCompat#getBlockNetworkLoads()

Implementation

Future<bool> getBlockNetworkLoads() {
  throw UnimplementedError(
      'getBlockNetworkLoads is not implemented on the current platform');
}