Udostępnij za pośrednictwem


CameraOfflineSession.CameraOfflineSessionCallback.OnSwitchFailed Method

Definition

This method indicates that the offline switch call CameraCaptureSession#switchToOffline was not able to complete successfully.

[Android.Runtime.Register("onSwitchFailed", "(Landroid/hardware/camera2/CameraOfflineSession;)V", "GetOnSwitchFailed_Landroid_hardware_camera2_CameraOfflineSession_Handler", ApiSince=30)]
public abstract void OnSwitchFailed (Android.Hardware.Camera2.CameraOfflineSession session);
[<Android.Runtime.Register("onSwitchFailed", "(Landroid/hardware/camera2/CameraOfflineSession;)V", "GetOnSwitchFailed_Landroid_hardware_camera2_CameraOfflineSession_Handler", ApiSince=30)>]
abstract member OnSwitchFailed : Android.Hardware.Camera2.CameraOfflineSession -> unit

Parameters

session
CameraOfflineSession

the offline session that failed to switch to ready state

Attributes

Remarks

This method indicates that the offline switch call CameraCaptureSession#switchToOffline was not able to complete successfully.

The offline switch can fail either due to internal camera error during the switch sequence or because the camera implementation was not able to find any pending capture requests that can be migrated to offline mode.

Calling CameraOfflineSession#close is not necessary and clients will not receive any further offline session notifications.

Java documentation for android.hardware.camera2.CameraOfflineSession.CameraOfflineSessionCallback.onSwitchFailed(android.hardware.camera2.CameraOfflineSession).

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