CameraOfflineSession.CameraOfflineSessionCallback.OnClosed 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.
This method is called when the offline session is closed.
[Android.Runtime.Register("onClosed", "(Landroid/hardware/camera2/CameraOfflineSession;)V", "GetOnClosed_Landroid_hardware_camera2_CameraOfflineSession_Handler", ApiSince=30)]
public abstract void OnClosed (Android.Hardware.Camera2.CameraOfflineSession session);
[<Android.Runtime.Register("onClosed", "(Landroid/hardware/camera2/CameraOfflineSession;)V", "GetOnClosed_Landroid_hardware_camera2_CameraOfflineSession_Handler", ApiSince=30)>]
abstract member OnClosed : Android.Hardware.Camera2.CameraOfflineSession -> unit
Parameters
- session
- CameraOfflineSession
the session returned by CameraCaptureSession#switchToOffline
- Attributes
Remarks
This method is called when the offline session is closed.
An offline session will be closed after a call to CameraOfflineSession#close
.
In case of failure to switch to offline mode, only #onSwitchFailed
will be called and #onClosed
will not be.
In case there was no previous #onIdle
notification any in-progress offline capture requests within the offline session will be discarded and further result callbacks will not be triggered.
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.