-
public interface Camera2Capturer.ListenerInterface that provides events and errors related to Camera2Capturer.
-
-
Method Summary
Modifier and Type Method Description abstract voidonFirstFrameAvailable()Indicates when the first frame has been captured from the camera. abstract voidonCameraSwitched(@NonNull() String newCameraId)Notifies when a camera switch is complete. abstract voidonError(@NonNull() Camera2Capturer.Exception camera2CapturerException)Reports an error that occurred in Camera2Capturer. -
-
Method Detail
-
onFirstFrameAvailable
abstract void onFirstFrameAvailable()
Indicates when the first frame has been captured from the camera.
-
onCameraSwitched
abstract void onCameraSwitched(@NonNull() String newCameraId)
Notifies when a camera switch is complete.
- Parameters:
newCameraId- the camera ID after camera switch is complete.
-
onError
abstract void onError(@NonNull() Camera2Capturer.Exception camera2CapturerException)
Reports an error that occurred in Camera2Capturer.
- Parameters:
camera2CapturerException- the code that describes the error that occurred.
-
-
-
-