Package 

Interface Camera2Capturer.Listener

    • Method Summary

      Modifier and Type Method Description
      abstract void onFirstFrameAvailable() Indicates when the first frame has been captured from the camera.
      abstract void onCameraSwitched(@NonNull() String newCameraId) Notifies when a camera switch is complete.
      abstract void onError(@NonNull() Camera2Capturer.Exception camera2CapturerException) Reports an error that occurred in Camera2Capturer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.