Camera2CaptureCallbackForwarderpublic class Camera2CaptureCallbackForwarder extends android.hardware.camera2.CameraCaptureSession.CaptureCallback Proxy that forwards all updates to another {@link CaptureCallback}, invoking
its callbacks on a separate {@link Handler}. |
Fields Summary |
---|
private android.hardware.camera2.CameraCaptureSession.CaptureCallback | mListener | private android.os.Handler | mHandler |
Methods Summary |
---|
public void | onCaptureCompleted(android.hardware.camera2.CameraCaptureSession session, android.hardware.camera2.CaptureRequest request, android.hardware.camera2.TotalCaptureResult result)
mHandler.post(new Runnable() {
@Override
public void run() {
mListener.onCaptureCompleted(session, request, result);
}});
| public void | onCaptureFailed(android.hardware.camera2.CameraCaptureSession session, android.hardware.camera2.CaptureRequest request, android.hardware.camera2.CaptureFailure failure)
mHandler.post(new Runnable() {
@Override
public void run() {
mListener.onCaptureFailed(session, request, failure);
}});
| public void | onCaptureProgressed(android.hardware.camera2.CameraCaptureSession session, android.hardware.camera2.CaptureRequest request, android.hardware.camera2.CaptureResult partialResult)
mHandler.post(new Runnable() {
@Override
public void run() {
mListener.onCaptureProgressed(session, request, partialResult);
}});
| public void | onCaptureSequenceAborted(android.hardware.camera2.CameraCaptureSession session, int sequenceId)
mHandler.post(new Runnable() {
@Override
public void run() {
mListener.onCaptureSequenceAborted(session, sequenceId);
}});
| public void | onCaptureSequenceCompleted(android.hardware.camera2.CameraCaptureSession session, int sequenceId, long frameNumber)
mHandler.post(new Runnable() {
@Override
public void run() {
mListener.onCaptureSequenceCompleted(session, sequenceId, frameNumber);
}});
| public void | onCaptureStarted(android.hardware.camera2.CameraCaptureSession session, android.hardware.camera2.CaptureRequest request, long timestamp, long frameNumber)
mHandler.post(new Runnable() {
@Override
public void run() {
mListener.onCaptureStarted(session, request, timestamp, frameNumber);
}});
|
|