Camera2CaptureCallbackSplitterpublic class Camera2CaptureCallbackSplitter extends android.hardware.camera2.CameraCaptureSession.CaptureCallback Junction that allows notifying multiple {@link CaptureCallback}s whenever
the {@link CameraCaptureSession} posts a capture-related update. |
Fields Summary |
---|
private final List | mRecipients |
Methods Summary |
---|
public void | onCaptureCompleted(android.hardware.camera2.CameraCaptureSession session, android.hardware.camera2.CaptureRequest request, android.hardware.camera2.TotalCaptureResult result)
for (CaptureCallback target : mRecipients) {
target.onCaptureCompleted(session, request, result);
}
| public void | onCaptureFailed(android.hardware.camera2.CameraCaptureSession session, android.hardware.camera2.CaptureRequest request, android.hardware.camera2.CaptureFailure failure)
for (CaptureCallback target : mRecipients) {
target.onCaptureFailed(session, request, failure);
}
| public void | onCaptureProgressed(android.hardware.camera2.CameraCaptureSession session, android.hardware.camera2.CaptureRequest request, android.hardware.camera2.CaptureResult partialResult)
for (CaptureCallback target : mRecipients) {
target.onCaptureProgressed(session, request, partialResult);
}
| public void | onCaptureSequenceAborted(android.hardware.camera2.CameraCaptureSession session, int sequenceId)
for (CaptureCallback target : mRecipients) {
target.onCaptureSequenceAborted(session, sequenceId);
}
| public void | onCaptureSequenceCompleted(android.hardware.camera2.CameraCaptureSession session, int sequenceId, long frameNumber)
for (CaptureCallback target : mRecipients) {
target.onCaptureSequenceCompleted(session, sequenceId, frameNumber);
}
| public void | onCaptureStarted(android.hardware.camera2.CameraCaptureSession session, android.hardware.camera2.CaptureRequest request, long timestamp, long frameNumber)
for (CaptureCallback target : mRecipients) {
target.onCaptureStarted(session, request, timestamp, frameNumber);
}
|
|