Freigeben über


CameraExtensionSession.StateCallback.OnClosed(CameraExtensionSession) Method

Definition

This method is called when the session is closed.

[Android.Runtime.Register("onClosed", "(Landroid/hardware/camera2/CameraExtensionSession;)V", "GetOnClosed_Landroid_hardware_camera2_CameraExtensionSession_Handler", ApiSince=31)]
public virtual void OnClosed (Android.Hardware.Camera2.CameraExtensionSession session);
[<Android.Runtime.Register("onClosed", "(Landroid/hardware/camera2/CameraExtensionSession;)V", "GetOnClosed_Landroid_hardware_camera2_CameraExtensionSession_Handler", ApiSince=31)>]
abstract member OnClosed : Android.Hardware.Camera2.CameraExtensionSession -> unit
override this.OnClosed : Android.Hardware.Camera2.CameraExtensionSession -> unit

Parameters

session
CameraExtensionSession

the session received during StateCallback#onConfigured(CameraExtensionSession)

Attributes

Remarks

This method is called when the session is closed.

A session is closed when a new session is created by the parent camera device, or when the parent camera device is closed (either by the user closing the device, or due to a camera device disconnection or fatal error).

Once a session is closed, all methods on it will throw an IllegalStateException, and any repeating requests are stopped (as if #stopRepeating() was called). However, any in-progress capture requests submitted to the session will be completed as normal.

Java documentation for android.hardware.camera2.CameraExtensionSession.StateCallback.onClosed(android.hardware.camera2.CameraExtensionSession).

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