Skip to main content

RegisterAvaloniaServiceWorker Property

Unstable.

Note: This API is unstable and may change in a future release.

Defines if the service worker used by Avalonia should be registered. If registered, service worker can work as a save file picker fallback on the browsers that don't support native implementation. For more details, see https://github.com/jimmywarting/native-file-system-adapter#a-note-when-downloading-with-the-polyfilled-version.

Definition

Namespace: Avalonia.Browser
Assembly: Avalonia.Browser (in Avalonia.Browser.dll)

[UnstableAttribute("This property might not work reliably.")]
public bool RegisterAvaloniaServiceWorker { get; set; }

Property Value

Boolean

See Also

Reference

BrowserPlatformOptions Class
Avalonia.Browser Namespace