Skip to main content

BrowserPlatformOptions Class

Definition​

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

public class BrowserPlatformOptions : IEquatable<BrowserPlatformOptions>
InheritanceObject → BrowserPlatformOptions
ImplementsIEquatable(BrowserPlatformOptions)

Constructors​

BrowserPlatformOptions()Initializes a new instance of the BrowserPlatformOptions class

Properties​

AvaloniaServiceWorkerScopeIf RegisterAvaloniaServiceWorker is enabled, it is possible to redefine scope for the worker. By default, current domain root is used as a scope.
FrameworkAssetPathResolverDefines paths where avalonia modules and service locator should be resolved. If null, default path resolved depending on the backend (browser or blazor) is used.
PreferFileDialogPolyfillAvalonia uses "native-file-system-adapter" polyfill for the file dialogs. If native implementation is available, by default it is used. This property forces polyfill to be always used. For more details, see https://github.com/jimmywarting/native-file-system-adapter#a-note-when-downloading-with-the-polyfilled-version.
PreferManagedThreadDispatcherDefines if Avalonia should create a controlled dispatcher loop on the web worker thread. If used only when WasmEnableThreads is set to true. Default value is true.
RegisterAvaloniaServiceWorkerDefines 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.
Unstable.
RenderingModeGets or sets Avalonia rendering modes with fallbacks. The first element in the array has the highest priority.

Methods​

Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)

See Also​

Reference​

Avalonia.Browser Namespace