Google has up to date Android Jetpack, the suite of libraries and instruments for Android cell growth. The replace features a collection of latest libraries for capabilities starting from constructing digital camera apps to benchmarking code. Google additionally launched Jetpack Compose, a challenge aimed toward simplifying UI growth.
The new Android Jetpack libraries are in alpha or beta levels. These embody:
- Android for Cars, a beta-stage library for constructing apps that may be put in in a automobile’s infotainment system through Android Automotive OS.
- Benchmark, an alpha-stage library for benchmarking Java, Kotlin, and native code. Google has used this library to stop introduction of latency into code. The library works with the Android Studio IDE.
- Biometrics Prompt, a beta library for coming into biometrics log-in credentials.
- CameraX, an alpha library for digital camera app growth with out having to be involved with underlying machine habits. The API is backward-compatible to Android 5.0 (API 21) or increased.
- ConstraintLayout2, a beta library offering a brand new manner of customizing layouts, utilizing helper lessons. Motion and widget animation administration is offered, through a
MotionStructure
sort. - Enterprise, a beta library enabling managed enterprise apps to ship suggestions to mobility administration suppliers within the type of keyed app states.
- Lifecycle and LiveData KTX, an alpha library offering Kotlin coroutines which can be lifecycle-aware. Developers can entry coroutines scopes tied to lifecycles, coroutines which can be lifecycle-aware, and assist for asynchronous chains with the liveData builder.
- Security, an alpha for implementing safety greatest practices together with encryption and a hardware-backed keystore with consumer presence.
- ViewModel with SavedState, an alpha-stage module that provides the advantages of ViewModel, which saves UI information when a configuration is modified, and SavedState, saving utility state.
- ViewPager2, the subsequent technology of ViewPager, for display slide transitions. ViewPager2 is in an alpha state.
Google additionally has rolled out a preview of Jetpack Compose, a toolkit supposed to simplify UI growth. It combines a reactive programming mannequin with Kotlin. Jetpack Compose might be downloaded from developer.android.com.