CameraDevice.StateCallback.OnClosed(CameraDevice) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.