Skip to main content

iOSPlatformOptions Class

Definition​

Namespace:Avalonia
Assembly:Avalonia.iOS
Package:Avalonia.iOS

iOS backend options.

public class iOSPlatformOptions

Inheritance: object -> iOSPlatformOptions

Constructors​

NameDescription
iOSPlatformOptionsNo summary available.

iOSPlatformOptions Constructor​

public iOSPlatformOptions()

Properties​

NameDescription
EnableHighRefreshRateGets or sets whether rendering follows the display refresh rate, up to 120 Hz on ProMotion displays. The default value is true.
RenderingModeGets or sets Avalonia rendering modes with fallbacks. The first element in the array has the highest priority. The default value is: Avalonia.iOSRenderingMode.OpenGl.

EnableHighRefreshRate Property​

Gets or sets whether rendering follows the display refresh rate, up to 120 Hz on ProMotion displays. The default value is true.

public bool EnableHighRefreshRate { get; set; }

Remarks​

On iPhone, rates above 60 Hz also need CADisableMinimumFrameDurationOnPhone set to true in the app's Info.plist. Set this to false to keep the system's default rate, for example if the app can't sustain high frame rates.

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.iOSRenderingMode.OpenGl.

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

Exceptions​