RegistrationOptions Class
The options of ServiceWorkerContainer.Register (https://w3c.github.io/ServiceWorker/#dictdef-registrationoptions).
public sealed class RegistrationOptionsConstructors
| Name | Description |
|---|---|
| RegistrationOptions() |
RegistrationOptions()
public RegistrationOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Scope | Gets the scope URL, relative to the API base URL, or null for the directory of the script. |
| Type | Gets the type of the script. |
| UpdateViaCache | Gets whether the HTTP cache is used by the update checks. |
Gets the scope URL, relative to the API base URL, or null for the directory of the script.
public string? Scope { get; init; }Gets the type of the script.
public WorkerType Type { get; init; }UpdateViaCache
ServiceWorkerTypes.csGets whether the HTTP cache is used by the update checks.
public ServiceWorkerUpdateViaCache UpdateViaCache { get; init; }