There are only a few steps to add Window Manager to your Xamarin app:Ĭreate a Window Manager instance and wire up to the correct events. The benefit of these manufacturer-agnostic APIs is that they respond to both hardware attributes and device posture to give your code a hint about what the user is trying to accomplish. State – HALF_OPEN (90 degrees) or FULL (180 degrees).OcclusionMode – Full or None, indicating whether the feature hides content behind it (i.e.Orientation – The vertical or horizontal orientation of the hinge or fold.This is always true for hinges that occlude content, and only true for non-occluding features when the devices are folded (to around 90 degrees). IsSeparating – Boolean if the hinge or fold is acting as a separator on the screen.Bounds – Rectangle that defines the coordinates of the hinge or fold. ![]() ![]() We are only interested in FoldingFeature instances for the purposes of updating layouts for dual-screen and foldable devices.
0 Comments
Leave a Reply. |