public static interface CameraAgent.CameraOpenCallback
Camera.ErrorCallback
, which
is used after the camera is opened.Modifier and Type | Method and Description |
---|---|
void |
onCameraDisabled(int cameraId)
Callback when
com.android.camera.CameraDisabledException is
caught. |
void |
onCameraOpened(CameraAgent.CameraProxy camera)
Callback when camera open succeeds.
|
void |
onDeviceOpenedAlready(int cameraId,
String info)
Callback when trying to open the camera which is already opened.
|
void |
onDeviceOpenFailure(int cameraId,
String info)
Callback when
com.android.camera.CameraHardwareException is
caught. |
void |
onReconnectionFailure(CameraAgent mgr,
String info)
Callback when
IOException is caught during
Camera.reconnect() . |
void onCameraOpened(CameraAgent.CameraProxy camera)
void onCameraDisabled(int cameraId)
com.android.camera.CameraDisabledException
is
caught.cameraId
- The disabled camera.void onDeviceOpenFailure(int cameraId, String info)
com.android.camera.CameraHardwareException
is
caught.cameraId
- The camera with the hardware failure.info
- The extra info regarding this failure.void onDeviceOpenedAlready(int cameraId, String info)
cameraId
- The camera which is causing the open error.void onReconnectionFailure(CameraAgent mgr, String info)
IOException
is caught during
Camera.reconnect()
.mgr
- The CameraAgent
with the reconnect failure.