Table of Contents

Class MauiSystemSettingsHandler

Namespace
Alternet.UI
Assembly
Alternet.UI.Maui.dll

Provides platform-specific implementations for handling system settings in a .NET MAUI application.

public class MauiSystemSettingsHandler : PlessSystemSettingsHandler, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, ISystemSettingsHandler, IDisposableObject, IDisposable, IBaseObject
Inheritance
MauiSystemSettingsHandler
Implements

Remarks

This class extends PlessSystemSettingsHandler and implements ISystemSettingsHandler to provide functionality specific to the MAUI platform, such as retrieving metrics, determining appearance settings, and creating display factory handlers.

Methods

CreateDisplayFactoryHandler()

Creates IDisplayFactoryHandler interface provider.

GetAppearanceIsDark()

Return true if the current system theme is explicitly recognized as being a dark theme or if the default window background is dark.

GetMetric(SystemSettingsMetric)

Returns the value of a system metric, or -1 if the metric is not supported on the current system.

GetPlatformKind()

Gets platform kind.

IsUsingDarkBackground()

Returns true if the background is darker than foreground. This is used by AppearanceIsDark if there is no platform-specific way to determine whether a dark mode is being used and is generally not very useful to call directly.