![]() We plan to remove the DeviceState class in a future release of the library. This deprecation was done to move towards a more generic API that allows the system to return information about all the DisplayFeature instances that are available for your app rather than defining an overall device state. DisplayFeature added, DeviceState deprecatedĪnother major change is the deprecation of the DeviceState class along with the callbacks that use it to notify your applications. While your application can still pass a null reference as WindowBackend in this version, we plan to make the WindowBackend reference a required parameter in the future, removing the deprecation, to promote it for testing purpose. You can find a reference implementation in the updated sample. This original constructor can be used in your tests, when you want to use a custom WindowBackend to simulate a foldable device on a regular device or emulator. ![]() There is now a simple constructor with a single argument pointing to the context of a visual entity (like the current activity): Read on to learn more about these updates! Creating a WindowManager We spent a lot of time reviewing your feedback after the initial release and we’ve made many changes in this release. We have also been looking at different areas in the WindowManager space where we can provide more functionality, and we are happy to announce that we are introducing WindowMetrics to allow you to use these new Android 11 APIs starting from Android 4.1 (API level 16). As we develop this library we have taken your feedback into consideration, and we continue iterating on the API while in alpha to provide a cleaner and more complete API surface. The Jetpack WindowManager library helps you build apps that are aware of new device features such as folds and hinges, so you can take advantage of new possibilities that didn’t exist before. ![]() We are excited to announce the alpha02 release of the Jetpack WindowManager library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |