Reputation: 658
I'm starting to work on a project where we need to access the 2nd screen of a dual screen phone, we are using Xamarin. I cannot find any documentation on how to do this. Is anyone aware of a way to do this?
Upvotes: 1
Views: 408
Reputation: 3261
The above comments are focused on second external screens, which is mostly what was around in 2019 :)
Now there are multiple dual-screen devices, including the Microsoft Surface Duo, and a couple of different styles from Samsung (Galaxy Fold/2, Galaxy Flip).
If you're using Xamarin.Forms, there's a TwoPaneView
layout control that specifically detects and adapts to dual-screens, and also a DualScreenInfo
helper class for device metrics. Get started docs and more details are available on learn.microsoft.com. Check out these samples and this GitHub repo. These APIs are currently hardcoded for the Surface Duo device.
If you're using Xamarin.Android, you have two options:
Upvotes: 1