Udostępnij za pośrednictwem


CameraOfflineSession.CameraOfflineSessionCallback.OnError Method

Definition

This method is called when the offline session encounters an unexpected error.

[Android.Runtime.Register("onError", "(Landroid/hardware/camera2/CameraOfflineSession;I)V", "GetOnError_Landroid_hardware_camera2_CameraOfflineSession_IHandler", ApiSince=30)]
public abstract void OnError (Android.Hardware.Camera2.CameraOfflineSession session, int status);
[<Android.Runtime.Register("onError", "(Landroid/hardware/camera2/CameraOfflineSession;I)V", "GetOnError_Landroid_hardware_camera2_CameraOfflineSession_IHandler", ApiSince=30)>]
abstract member OnError : Android.Hardware.Camera2.CameraOfflineSession * int -> unit

Parameters

session
CameraOfflineSession

the current offline session

status
Int32

error status

Attributes

Remarks

This method is called when the offline session encounters an unexpected error.

This notification will only be invoked for sessions that reached the ready state. Clients will need to call CameraOfflineSession#close to close and release all resources. #onClosed will not be triggered automatically in error scenarios.

Java documentation for android.hardware.camera2.CameraOfflineSession.CameraOfflineSessionCallback.onError(android.hardware.camera2.CameraOfflineSession, int).

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