lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey
added in API level 1
Deprecated since API level 21

Camera.ErrorCallback

public static interface Camera.ErrorCallback

android.hardware.Camera.ErrorCallback


This interface was deprecated in API level 21.
We recommend using the new android.hardware.camera2 API for new applications.

Callback interface for camera error notification.

Summary

Public methods

abstract void onError(int error, Camera camera)

Callback for camera errors.

Public methods

onError

added in API level 1
public abstract void onError (int error, 
                Camera camera)

Callback for camera errors.

Parameters
error int: error code:

camera Camera: the Camera service object