Share via


CameraDevice.StateCallback.OnClosed(CameraDevice) Method

Definition

The method called when a camera device has been closed with CameraDevice#close.

[Android.Runtime.Register("onClosed", "(Landroid/hardware/camera2/CameraDevice;)V", "GetOnClosed_Landroid_hardware_camera2_CameraDevice_Handler")]
public virtual void OnClosed (Android.Hardware.Camera2.CameraDevice camera);
[<Android.Runtime.Register("onClosed", "(Landroid/hardware/camera2/CameraDevice;)V", "GetOnClosed_Landroid_hardware_camera2_CameraDevice_Handler")>]
abstract member OnClosed : Android.Hardware.Camera2.CameraDevice -> unit
override this.OnClosed : Android.Hardware.Camera2.CameraDevice -> unit

Parameters

camera
CameraDevice

the camera device that has become closed

Attributes

Remarks

The method called when a camera device has been closed with CameraDevice#close.

Any attempt to call methods on this CameraDevice in the future will throw a IllegalStateException.

The default implementation of this method does nothing.

Java documentation for android.hardware.camera2.CameraDevice.StateCallback.onClosed(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