Android APIs
Added in API level 1
Deprecated since API level 21
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.

Class Overview

Callback interface for camera error notification.

Summary

Public Methods
abstract void onError(int error, Camera camera)
Callback for camera errors.

Public Methods

public abstract void onError (int error, Camera camera)

Added in API level 1

Callback for camera errors.

Parameters
error int: error code:
camera Camera: the Camera service object