Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is CameraX api only for Kotlin or it is for java too?

When I went in a sample app code, it was mentioned to choose Kotlin while creating the project.

I have use camera2 API before.

like image 665
byte_bx Avatar asked Jul 29 '19 16:07

byte_bx


People also ask

What is CameraX API?

CameraX is a Jetpack library, built to help make camera app development easier. For new apps, we recommend starting with CameraX. It provides a consistent, easy-to-use API that works across the vast majority of Android devices, with backward-compatibility to Android 5.0 (API level 21).

Is CameraX still in beta?

As part of Android Jetpack, the CameraX library makes complex camera functionality available in an easy-to-use API, helping you create a best-in-class experience that works consistently across Android versions and devices.

What is bindToLifecycle?

bindToLifecycle() . That lifecycle then informs CameraX when to configure the camera capture session and ensures camera state changes appropriately to match lifecycle transitions. For implementation steps for each use case, see Implement a preview, Analyze images, Image capture, and Video capture.


1 Answers

If you mean developing a camerax based app. You can use java. They have sample app even in JAVA.

https://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-master-dev/camera/integration-tests/coretestapp

like image 174
Wasim Ansari Avatar answered Sep 21 '22 13:09

Wasim Ansari