.NET MAUI › Device Features & Essentials
How do you get device and display information in MAUI?
IntermediateAnswer
Use DeviceInfo (model, manufacturer, platform, version, idiom, DeviceType—physical vs virtual) and DeviceDisplay (screen metrics, density, orientation, keep-screen-on). These help adapt UI and diagnose device-specific issues.
var idiom = DeviceInfo.Current.Idiom; // Phone/Tablet/Desktop
var density = DeviceDisplay.Current.MainDisplayInfo.Density;
DeviceDisplay.Current.KeepScreenOn = true;Real-world example A video page keeps the screen awake during playback and adapts controls when it detects a tablet idiom.