Package com.twilio.video
Interface Camera2Capturer.Listener
-
- Enclosing class:
- Camera2Capturer
public static interface Camera2Capturer.Listener
Interface that provides events and errors related toCamera2Capturer
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCameraSwitched(java.lang.String newCameraId)
Notifies when a camera switch is complete.void
onError(Camera2Capturer.Exception camera2CapturerException)
Reports an error that occurred inCamera2Capturer
.void
onFirstFrameAvailable()
Indicates when the first frame has been captured from the camera.
-
-
-
Method Detail
-
onFirstFrameAvailable
void onFirstFrameAvailable()
Indicates when the first frame has been captured from the camera.
-
onCameraSwitched
void onCameraSwitched(@NonNull java.lang.String newCameraId)
Notifies when a camera switch is complete.- Parameters:
newCameraId
- the camera ID after camera switch is complete.
-
onError
void onError(@NonNull Camera2Capturer.Exception camera2CapturerException)
Reports an error that occurred inCamera2Capturer
.- Parameters:
camera2CapturerException
- the code that describes the error that occurred.
-
-