Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

Lock Device Orientation API

Open yauhenipakala opened this issue 8 years ago • 6 comments

Description

Ability to work with screen orientation on mobile device (change, lock/unlock).

API Declaration

  • DeviceOrientations DeviceOrientation.CurrentOrientation
  • void LockOrientation(DeviceOrientations orientation);
  • void UnlockOrientation();

Migrate from

yauhenipakala avatar Apr 18 '18 14:04 yauhenipakala

We do have the current orientation and screen metrics. We are going to make it more discoverable with #197 which is where we would put something like this.

jamesmontemagno avatar Apr 24 '18 16:04 jamesmontemagno

Moved the orientation to a new class. Locking will be on the proposal block for future milestones.

jamesmontemagno avatar Apr 26 '18 22:04 jamesmontemagno

Is this actually up for grabs @jamesmontemagno ?

Mrnikbobjeff avatar Nov 28 '19 01:11 Mrnikbobjeff

Hi. I could really use LosckScreenOrientation() from now! What's the status?

dlandi avatar Jan 05 '20 17:01 dlandi

Hi, I could use the locking/unlocking to.

Burgler-dev avatar Feb 18 '20 10:02 Burgler-dev

I think at this point it's safe to say that this won't be making it's way into Xamarin.Essentials anymore. Keep your eye on .NET MAUI for all new development! Thanks for all input and efforts here.

jfversluis avatar Aug 12 '23 07:08 jfversluis