Camera.IErrorCallback.OnError(CameraError, Camera) 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.
Caution
deprecated
Callback for camera errors.
[Android.Runtime.Register("onError", "(ILandroid/hardware/Camera;)V", "GetOnError_ILandroid_hardware_Camera_Handler:Android.Hardware.Camera/IErrorCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public void OnError (Android.Hardware.CameraError error, Android.Hardware.Camera? camera);
[<Android.Runtime.Register("onError", "(ILandroid/hardware/Camera;)V", "GetOnError_ILandroid_hardware_Camera_Handler:Android.Hardware.Camera/IErrorCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member OnError : Android.Hardware.CameraError * Android.Hardware.Camera -> unit
Parameters
- error
- CameraError
error code:
<ul>
<li>#CAMERA_ERROR_UNKNOWN
<li>#CAMERA_ERROR_SERVER_DIED
</ul>
- camera
- Camera
the Camera service object
- Attributes
Remarks
Callback for camera errors.
Java documentation for android.hardware.Camera.ErrorCallback.onError(int, android.hardware.Camera)
.
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.