Interface IResolutionChangeDetector
Detects significant changes in screen resolution (width, height, refresh rate).
Namespace: Serenity.SystemConfiguration.Application.Interfaces
Assembly: Serenity.SystemConfiguration.Application.dll
Syntax
public interface IResolutionChangeDetector
Properties
LastHeight
Gets the last cached height.
Declaration
int LastHeight { get; }
Property Value
| Type | Description |
|---|---|
| int | The last cached height as an integer. |
LastRefreshRateHz
Gets the last cached refresh rate in Hz.
Declaration
int LastRefreshRateHz { get; }
Property Value
| Type | Description |
|---|---|
| int | The last cached refresh rate in Hz as an integer. |
LastWidth
Gets the last cached width.
Declaration
int LastWidth { get; }
Property Value
| Type | Description |
|---|---|
| int | The last cached width as an integer. |
Methods
CacheCurrent()
Captures and caches the current state (width, height, Hz) as a reference.
Declaration
void CacheCurrent()
HasMeaningfulChange()
Checks if there has been a meaningful change since the last cached state.
Declaration
bool HasMeaningfulChange()
Returns
| Type | Description |
|---|---|
| bool | True if there is a meaningful change; otherwise, false. |