AvaloniaNativePlatformOptions Class
Definition
OSX backend options.
public class AvaloniaNativePlatformOptions
Constructors
| Name | Description |
|---|---|
| AvaloniaNativePlatformOptions | No summary available. |
AvaloniaNativePlatformOptions Constructor
public AvaloniaNativePlatformOptions()
Properties
| Name | Description |
|---|---|
| AppSandboxEnabled | 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. |
| AvaloniaNativeLibraryPath | 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. |
| OverlayPopups | Embeds popups to the window when set to true. The default value is false. |
| RenderingMode | 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. |
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.