CameraOfflineSession.CameraOfflineSessionCallback.OnSwitchFailed 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 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.
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.