Class UnityScreenSystemMonitorsProvider
Fallback provider that returns a generic single-monitor setup based on Unity's
UnityEngine.Screen.currentResolution.
Used on platforms without a dedicated OS-level monitors provider (see
UnitySystemMonitorsProviderFactory). This is the Unity-specific replacement
for the Business-layer NullSystemMonitorsProvider,
which must stay engine-agnostic and can no longer read UnityEngine.Screen.currentResolution directly.
Implements
Inherited Members
Namespace: Serenity.SystemConfiguration.Infrastructure.Providers
Assembly: Serenity.UnitySystemConfiguration.Infrastructure.dll
Syntax
public class UnityScreenSystemMonitorsProvider : ISystemMonitorsProvider
Constructors
UnityScreenSystemMonitorsProvider()
Declaration
public UnityScreenSystemMonitorsProvider()
Methods
GetSystemMonitors()
Gets information about the system monitors, derived from Unity's current screen resolution.
Declaration
public IReadOnlyList<OsMonitorInfo> GetSystemMonitors()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<OsMonitorInfo> | A list containing a single monitor representing the current resolution. |