setServiceWorkerClient method
- ServiceWorkerClient? value
Sets the client to capture service worker related callbacks. A ServiceWorkerClient should be set before any service workers are active, e.g. a safe place is before any WebView instances are created or pages loaded.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - ServiceWorkerControllerCompat.setServiceWorkerClient)
Parameters - Officially Supported Platforms/Implementations:
value: all platforms
Use the PlatformServiceWorkerController.isMethodSupported method to check if this method is supported at runtime.
Implementation
setServiceWorkerClient(ServiceWorkerClient? value) =>
platform.setServiceWorkerClient(value);