Skip to main content

IPlatformSettings Interface

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

The IPlatformSettings interface represents a contract for accessing platform-specific settings and information. Some of these settings might be changed by used globally in the OS in runtime.

Definition

Namespace: Avalonia.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)

[NotClientImplementableAttribute]
public interface IPlatformSettings
View Source

Properties

HoldWaitDurationHolding duration between pointer press and when event is fired.
HotkeyConfigurationGet a configuration for platform-specific hotkeys in an Avalonia application.

Methods

GetColorValues()Gets current system color values including dark mode and accent colors.
GetDoubleTapSize(PointerType)The size of the rectangle around the location of a pointer down that a pointer up must occur within in order to register a double-tap gesture, in device-independent pixels.
GetDoubleTapTime(PointerType)Gets the maximum time that may occur between the first and second click of a double- tap gesture.
GetTapSize(PointerType)The size of the rectangle around the location of a pointer down that a pointer up must occur within in order to register a tap gesture, in device-independent pixels.

Events

ColorValuesChangedRaises when current system color values are changed. Including changing of a dark mode and accent colors.

See Also

Reference

Avalonia.Platform Namespace