static void OnMainDisplayInfoChanged(DeviceDisplayInfo metrics) => OnMainDisplayInfoChanged(new DisplayInfoChangedEventArgs(metrics));
public DisplayInfoChangedEventArgs(DeviceDisplayInfo displayInfo) =>
//public static bool KeepScreenOn //{ // get => PlatformKeepScreenOn; // set => PlatformKeepScreenOn = value; //} //public static DisplayInfo MainDisplayInfo => GetMainDisplayInfo(); static void SetCurrent(DeviceDisplayInfo metrics) => currentMetrics = new DeviceDisplayInfo(metrics.Width, metrics.Height, metrics.Density, metrics.Orientation, metrics.Rotation, metrics.Xdpi, metrics.Ydpi);