What is Android CameraX?

Yuichi Araki picture Yuichi Araki · Apr 23, 2019 · Viewed 9.6k times · Source

What is Android CameraX?

There is a session about CameraX planned in Google I/O 2019. What is it? Is it a new framework API? Is it a new library? https://events.google.com/io/schedule/events/8d400240-f31f-4ac2-bfab-f8347ef3ab3e

Does it mean that Camera2 API is deprecated? https://github.com/googlesamples/android-Camera2Basic

Answer

Oscar Wahltinez picture Oscar Wahltinez · May 7, 2019

What is Android CameraX?

CameraX is a new Jetpack library that lets developers control a device's camera and focuses on compatibility across devices going back to API level 21 (Lollipop). It was announced at Google I/O 2019 and has a dedicated documentation page alongside an official sample.

Does it mean that Camera2 API is deprecated?

Camera2 API is not deprecated; in fact, it is the foundation that CameraX is built on. CameraX also provides a Camera2 interop API that lets developers extend their CameraX implementation with Camera2 code.

For more information, the official documentation is available at https://developer.android.com/camerax