Microsoft has invited Android builders to establish or boost apps for twin-display screen products, especially the company’s Area Duo techniques.

Subsequent the September 22 introduction of Surface Duo 2, Microsoft issued a bulletin advising builders to use Jetpack Window Supervisor, now in a beta phase, to adapt purposes for dual-display screen, foldable, and huge-monitor products.

Jetpack Window Supervisor delivers a conventional API to work with foldable devices and features two critical classes: DisplayFeature, which finds disruptions in the constant flat-monitor floor these as hinges or folds, and FoldingFeature, which presents facts about the state of the folding part of the gadget. The FoldingFeature class features product-precise information and facts that enables a single code base to adapt to distinct twin-monitor and foldable devices, like all Floor Duo models. Jetpack Window Manager APIs instantly supply the proper information and facts for just about every device.

Area Duo 2 functions 5G assistance, a quicker CPU, 3 rear-going through cameras, and much larger and brighter screens than the former Duo. The Surface Duo Design and style Kit has been updated to accommodate the slightly diverse display measurements in the Duo 2 programs. Monitor resolution changes are mirrored in source qualifiers utilised for loading, layouts, and means.

Builders are recommended to download the Surface area 2 Android emulator. This delivers a dual-display working experience for operating Android 11, simulates the hinge in a “3D modes” perspective, and supports multi-contact and pen sensitivity. The emulator is readily available for Windows, Linux, and MacOS and will work with Android Studio, Visible Studio, Visual Studio Code, and other IDEs used for Android advancement.  

For Surface area Duo 2 builders, Microsoft is supplying samples exhibiting how to use Jetpack Window Manager, direction for incorporating Home windows Manager with Jetpack Compose (such as a TwoPaneLayout control), and the Surface area Laptop computer Studio developer tool.

Copyright © 2021 IDG Communications, Inc.