-
- All Implemented Interfaces:
-
com.otaliastudios.cameraview.engine.CameraEngine.Callback,com.otaliastudios.cameraview.gesture.GestureFinder.Controller,com.otaliastudios.cameraview.internal.OrientationHelper.Callback
class CameraView.CameraCallbacks implements CameraEngine.Callback, OrientationHelper.Callback, GestureFinder.Controller
-
-
Method Summary
Modifier and Type Method Description ContextgetContext()intgetWidth()intgetHeight()voiddispatchOnCameraOpened(CameraOptions options)voiddispatchOnCameraClosed()voidonCameraPreviewStreamSizeChanged()voiddispatchOnPictureShutter(boolean shouldPlaySound)voiddispatchOnPictureTaken(PictureResult.Stub stub)voiddispatchOnVideoTaken(VideoResult.Stub stub)voiddispatchOnFocusStart(Gesture gesture, PointF point)voiddispatchOnFocusEnd(Gesture gesture, boolean success, PointF point)voidonDeviceOrientationChanged(int deviceOrientation)voidonDisplayOffsetChanged(int displayOffset, boolean willRecreate)voiddispatchOnZoomChanged(float newValue, Array<PointF> fingers)voiddispatchOnExposureCorrectionChanged(float newValue, Array<float> bounds, Array<PointF> fingers)voiddispatchFrame(Frame frame)voiddispatchError(CameraException exception)voiddispatchOnVideoRecordingStart()voiddispatchOnVideoRecordingEnd()-
Methods inherited from class com.otaliastudios.cameraview.engine.CameraEngine.Callback
dispatchError, dispatchFrame, dispatchOnCameraOpened, dispatchOnExposureCorrectionChanged, dispatchOnFocusEnd, dispatchOnFocusStart, dispatchOnPictureTaken, dispatchOnVideoTaken -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getContext
@NonNull() Context getContext()
-
getWidth
int getWidth()
-
getHeight
int getHeight()
-
dispatchOnCameraOpened
void dispatchOnCameraOpened(CameraOptions options)
-
dispatchOnCameraClosed
void dispatchOnCameraClosed()
-
onCameraPreviewStreamSizeChanged
void onCameraPreviewStreamSizeChanged()
-
dispatchOnPictureShutter
void dispatchOnPictureShutter(boolean shouldPlaySound)
-
dispatchOnPictureTaken
void dispatchOnPictureTaken(PictureResult.Stub stub)
-
dispatchOnVideoTaken
void dispatchOnVideoTaken(VideoResult.Stub stub)
-
dispatchOnFocusStart
void dispatchOnFocusStart(Gesture gesture, PointF point)
-
dispatchOnFocusEnd
void dispatchOnFocusEnd(Gesture gesture, boolean success, PointF point)
-
onDeviceOrientationChanged
void onDeviceOrientationChanged(int deviceOrientation)
-
onDisplayOffsetChanged
void onDisplayOffsetChanged(int displayOffset, boolean willRecreate)
-
dispatchOnZoomChanged
void dispatchOnZoomChanged(float newValue, Array<PointF> fingers)
-
dispatchOnExposureCorrectionChanged
void dispatchOnExposureCorrectionChanged(float newValue, Array<float> bounds, Array<PointF> fingers)
-
dispatchFrame
void dispatchFrame(Frame frame)
-
dispatchError
void dispatchError(CameraException exception)
-
dispatchOnVideoRecordingStart
void dispatchOnVideoRecordingStart()
-
dispatchOnVideoRecordingEnd
void dispatchOnVideoRecordingEnd()
-
-
-
-