Category : handler

I’m trying to implement the Camera2 API in my application. Having never done this before, I’m starting with the Camera2Basic example code provided by android. However, within the createCaptureSession() method there is a deprecated initialization method CameraDevice.createCaptureSession(), so I changed it to the following: private suspend fun createCaptureSession( device: CameraDevice, targets: List<Surface> ): CameraCaptureSession = ..

Read more