ServiceWorkerController.SetServiceWorkerClient(ServiceWorkerClient) Method

Definition

Sets the client to capture service worker related callbacks.

[Android.Runtime.Register("setServiceWorkerClient", "(Landroid/webkit/ServiceWorkerClient;)V", "GetSetServiceWorkerClient_Landroid_webkit_ServiceWorkerClient_Handler", ApiSince=24)]
public abstract void SetServiceWorkerClient (Android.Webkit.ServiceWorkerClient? client);
[<Android.Runtime.Register("setServiceWorkerClient", "(Landroid/webkit/ServiceWorkerClient;)V", "GetSetServiceWorkerClient_Landroid_webkit_ServiceWorkerClient_Handler", ApiSince=24)>]
abstract member SetServiceWorkerClient : Android.Webkit.ServiceWorkerClient -> unit

Parameters

Attributes

Remarks

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.

Java documentation for android.webkit.ServiceWorkerController.setServiceWorkerClient(android.webkit.ServiceWorkerClient).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to