ServiceWorkerClient class

Class used by clients to capture Service Worker related callbacks.

Annotations
  • @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'ServiceWorkerClientCompat', apiUrl: 'https://developer.android.com/reference/androidx/webkit/ServiceWorkerClientCompat')])

Constructors

ServiceWorkerClient({Future<WebResourceResponse?> shouldInterceptRequest(WebResourceRequest request)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldInterceptRequest Future<WebResourceResponse?> Function(WebResourceRequest request)?
Notify the host application of a resource request and allow the application to return the data. If the return value is null, the Service Worker will continue to load the resource as usual. Otherwise, the return response and data will be used.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

isClassSupported({TargetPlatform? platform}) bool
Check if the current class is supported by the defaultTargetPlatform or a specific platform.
isPropertySupported(ServiceWorkerClientProperty property, {TargetPlatform? platform}) bool
Check if the given method is supported by the defaultTargetPlatform or a specific platform.