public static class CameraAgent.CameraOpenCallbackForward extends Object implements CameraAgent.CameraOpenCallback
Handler
.Modifier and Type | Method and Description |
---|---|
static CameraAgent.CameraOpenCallbackForward |
getNewInstance(Handler handler,
CameraAgent.CameraOpenCallback cb)
Returns a new instance of
FaceDetectionCallbackForward . |
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() . |
public static CameraAgent.CameraOpenCallbackForward getNewInstance(Handler handler, CameraAgent.CameraOpenCallback cb)
FaceDetectionCallbackForward
.handler
- The handler in which the callback will be invoked in.cb
- The callback to be invoked.FaceDetectionCallbackForward
, or
null if any parameter is null.public void onCameraOpened(CameraAgent.CameraProxy camera)
CameraAgent.CameraOpenCallback
onCameraOpened
in interface CameraAgent.CameraOpenCallback
public void onCameraDisabled(int cameraId)
CameraAgent.CameraOpenCallback
com.android.camera.CameraDisabledException
is
caught.onCameraDisabled
in interface CameraAgent.CameraOpenCallback
cameraId
- The disabled camera.public void onDeviceOpenFailure(int cameraId, String info)
CameraAgent.CameraOpenCallback
com.android.camera.CameraHardwareException
is
caught.onDeviceOpenFailure
in interface CameraAgent.CameraOpenCallback
cameraId
- The camera with the hardware failure.info
- The extra info regarding this failure.public void onDeviceOpenedAlready(int cameraId, String info)
CameraAgent.CameraOpenCallback
onDeviceOpenedAlready
in interface CameraAgent.CameraOpenCallback
cameraId
- The camera which is causing the open error.public void onReconnectionFailure(CameraAgent mgr, String info)
CameraAgent.CameraOpenCallback
IOException
is caught during
Camera.reconnect()
.onReconnectionFailure
in interface CameraAgent.CameraOpenCallback
mgr
- The CameraAgent
with the reconnect failure.