Xamarin.Forms DualScreenInfo API

The DualScreenInfo class is available in the Xamarin.Forms.DualScreen NuGet.

  • SpanningBounds – when spanned across two screens, return two rectangles indicating the bounds of each visible area. If the window isn't spanned this will return an empty array.
  • HingeBounds – the position of the hinge on the screen.
  • IsLandscape – if the device is landscape. This is useful because native orientation APIs don't report orientation correctly when an application is spanned.
  • SpanMode – whether the layout is in tall, wide, or single pane mode.

Read more in the Xamarin documentation.

Troubleshooting

If you observe unexpected behavior or results from DualScreenInfo, check the set-up instructions, including the Init method and ConfigurationChanges attribute.