Interface IPlatformSettings
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.
[NotClientImplementable]
public interface IPlatformSettings
Properties
HoldWaitDuration
Holding duration between pointer press and when event is fired.
TimeSpan HoldWaitDuration { get; }
Property Value
HotkeyConfiguration
Get a configuration for platform-specific hotkeys in an Avalonia application.
PlatformHotkeyConfiguration HotkeyConfiguration { get; }
Property Value
Methods
GetColorValues()
Gets current system color values including dark mode and accent colors.
PlatformColorValues GetColorValues()
Returns
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.
Size GetDoubleTapSize(PointerType type)
Parameters
type
PointerTypeThe pointer type.
Returns
GetDoubleTapTime(PointerType)
Gets the maximum time that may occur between the first and second click of a double- tap gesture.
TimeSpan GetDoubleTapTime(PointerType type)
Parameters
type
PointerType
Returns
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.
Size GetTapSize(PointerType type)
Parameters
type
PointerTypeThe pointer type.
Returns
Events
ColorValuesChanged
Raises when current system color values are changed. Including changing of a dark mode and accent colors.
event EventHandler<PlatformColorValues>? ColorValuesChanged