ServiceWorkerController.SetServiceWorkerClient(ServiceWorkerClient) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- client
- ServiceWorkerClient
- 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.
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.