SourceIntroducing CameraX, a Jetpack support library built to help you make camera app development easier. It provides a consistent and easy-to-use API surface that works across most Android devices, with backward-compatibility to Android 5.0 (API level 21). It reduces the amount of code you need to write when adding camera camera capabilities to your app.
CameraX also has an optional add-on, called Extensions, which allow you to access the same features as those in the native camera app that ships with the device. The first set of capabilities available on supported devices include Portrait, HDR, Night, and Beauty.