Skip to main content

AvaloniaNativePlatformOptions Class

Definition

Namespace:Avalonia
Assembly:Avalonia.Native
Package:Avalonia.Native

OSX backend options.

public class AvaloniaNativePlatformOptions

Inheritance: object -> AvaloniaNativePlatformOptions

Constructors

NameDescription
AvaloniaNativePlatformOptionsNo summary available.

AvaloniaNativePlatformOptions Constructor

public AvaloniaNativePlatformOptions()

Properties

NameDescription
AppSandboxEnabledIf you distribute your app in App Store - it should be with sandbox enabled. This parameter enables Avalonia.Platform.Storage.IStorageItem.SaveBookmarkAsync and related APIs, as well as wrapping all storage related calls in secure context. The default value is true.
AvaloniaNativeLibraryPathThis property should be used in case you want to build Avalonia OSX native part by yourself and make your Avalonia app run with it. The default value is null.
OverlayPopupsEmbeds popups to the window when set to true. The default value is false.
RenderingModeGets or sets Avalonia rendering modes with fallbacks. The first element in the array has the highest priority. The default value is: Avalonia.AvaloniaNativeRenderingMode.OpenGl, Avalonia.AvaloniaNativeRenderingMode.Software.

AppSandboxEnabled Property

If you distribute your app in App Store - it should be with sandbox enabled. This parameter enables Avalonia.Platform.Storage.IStorageItem.SaveBookmarkAsync and related APIs, as well as wrapping all storage related calls in secure context. The default value is true.

public bool AppSandboxEnabled { get; set; }

AvaloniaNativeLibraryPath Property

This property should be used in case you want to build Avalonia OSX native part by yourself and make your Avalonia app run with it. The default value is null.

public string AvaloniaNativeLibraryPath { get; set; }

OverlayPopups Property

Embeds popups to the window when set to true. The default value is false.

public bool OverlayPopups { get; set; }

RenderingMode Property

Gets or sets Avalonia rendering modes with fallbacks. The first element in the array has the highest priority. The default value is: Avalonia.AvaloniaNativeRenderingMode.OpenGl, Avalonia.AvaloniaNativeRenderingMode.Software.

public System.Collections.Generic.IReadOnlyList<Avalonia.AvaloniaNativeRenderingMode> RenderingMode { get; set; }

Remarks

If application should work on as wide range of devices as possible, at least add Avalonia.AvaloniaNativeRenderingMode.Software as a fallback value.

Exceptions