Device & UX
Plugin.Maui.DeviceOrientationPlus
Lock and unlock landscape or portrait, per page
Current NuGet 1.0.5
Lock, unlock, and listen for screen orientation in MAUI. DeviceDisplay orientation is read-only; this package is the missing write path for video, scanning, POS, and inspection.
Install
dotnet add package Plugin.Maui.DeviceOrientationPlusPackage ID: Plugin.Maui.DeviceOrientationPlus
Plugin.Maui.* restores from GitHub Packages. Add the org feed first — see Use nuvyntralabs GitHub Packages from a C# project.
Overview
Plugin.Maui.DeviceOrientationPlus locks, unlocks, and listens for screen orientation in MAUI on Android and iOS. DeviceDisplay.MainDisplayInfo.Orientation is read-only. This package is the missing write path: Orientation.Lock(Portrait), Unlock, SetAsync(Landscape), Changed, and a stack so a video page can lock landscape on top of a portrait lock and restore on disappear.
Current release
- 1.0.5. Current nuget.org pack.
- 1.0.4. Documented pack artifact matches the shipped package. No API change.
Full upgrade map for the 3 September 2026 hardening wave: Hardened plugin releases.
Capabilities
- Lock portrait or landscape.
- Per-page lock in OnAppearing / OnDisappearing.
- Changed with previous, current, and locked state.
- Scoped locks that restore automatically.
- .NET MAUI
- Orientation
- Landscape
- C#
Discussion
Comment on Plugin.Maui.DeviceOrientationPlus. The thread lives on this component's GitHub repository (nuvyntralabs/Plugin.Maui.DeviceOrientationPlus). Sign in with GitHub — Giscus uses Discussions, Utterances uses Issues.