CameraDevice.StateCallback.OnOpened(CameraDevice) Method

Definition

The method called when a camera device has finished opening.

[Android.Runtime.Register("onOpened", "(Landroid/hardware/camera2/CameraDevice;)V", "GetOnOpened_Landroid_hardware_camera2_CameraDevice_Handler")]
public abstract void OnOpened (Android.Hardware.Camera2.CameraDevice camera);
[<Android.Runtime.Register("onOpened", "(Landroid/hardware/camera2/CameraDevice;)V", "GetOnOpened_Landroid_hardware_camera2_CameraDevice_Handler")>]
abstract member OnOpened : Android.Hardware.Camera2.CameraDevice -> unit

Parameters

camera
CameraDevice

the camera device that has become opened

Attributes

Remarks

The method called when a camera device has finished opening.

At this point, the camera device is ready to use, and CameraDevice#createCaptureSession can be called to set up the first capture session.

Java documentation for android.hardware.camera2.CameraDevice.StateCallback.onOpened(android.hardware.camera2.CameraDevice).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to