Package 

Class Camera2Engine

    • Method Summary

      Modifier and Type Method Description
      void onPictureResult(@Nullable() PictureResult.Stub result, @Nullable() Exception error) Picture was taken or there was some error, ifthe result is null.
      void onVideoRecordingEnd() When video ends we must stop the recorder and remove the recorder surface fromcamera outputs.
      void onVideoResult(@Nullable() VideoResult.Stub result, @Nullable() Exception exception) The operation was completed, either with success or with an error.
      void setFlash(@NonNull() Flash flash)
      void setLocation(@Nullable() Location location)
      void setWhiteBalance(@NonNull() WhiteBalance whiteBalance)
      void setHdr(@NonNull() Hdr hdr)
      void setZoom(float zoom, @Nullable() Array<PointF> points, boolean notify)
      void setExposureCorrection(float EVvalue, @NonNull() Array<float> bounds, @Nullable() Array<PointF> points, boolean notify)
      void setPlaySounds(boolean playSounds)
      void setPreviewFrameRate(float previewFrameRate)
      void setPictureFormat(@NonNull() PictureFormat pictureFormat)
      void onImageAvailable(ImageReader reader)
      void setHasFrameProcessors(boolean hasFrameProcessors)
      void setFrameProcessingFormat(int format)
      void startAutoFocus(@Nullable() Gesture gesture, @NonNull() MeteringRegions regions, @NonNull() PointF legacyPoint)
      void addAction(@NonNull() Action action) Adds a new action
      void removeAction(@NonNull() Action action) Removes a previously added action
      CameraCharacteristics getCharacteristics(@NonNull() Action action) Returns the CameraCharacteristics of the currentcamera device.
      TotalCaptureResult getLastResult(@NonNull() Action action) Returns the latest TotalCaptureResult.
      CaptureRequest.Builder getBuilder(@NonNull() Action action) Returns the current CaptureRequest.Builder so thatactions can apply changes to it and later submit them.
      void applyBuilder(@NonNull() Action source) Applies the current builder (as per getBuilder)as a repeating request on the preview.
      void applyBuilder(@NonNull() Action source, @NonNull() CaptureRequest.Builder builder) Applies the given builder as a single capture request.Callers can catch the exception and choose what to do.
      • Methods inherited from class com.otaliastudios.cameraview.engine.CameraBaseEngine

        getAngles, getAudio, getAudioBitRate, getAudioCodec, getAutoFocusResetDelay, getCameraOptions, getExposureCorrectionValue, getFacing, getFlash, getFrameManager, getFrameProcessingFormat, getFrameProcessingMaxHeight, getFrameProcessingMaxWidth, getFrameProcessingPoolSize, getHdr, getLocation, getMode, getOverlay, getPictureFormat, getPictureMetering, getPictureSize, getPictureSizeSelector, getPictureSnapshotMetering, getPreview, getPreviewFrameRate, getPreviewFrameRateExact, getPreviewStreamSize, getPreviewStreamSizeSelector, getSnapshotMaxHeight, getSnapshotMaxWidth, getUncroppedSnapshotSize, getVideoBitRate, getVideoCodec, getVideoMaxDuration, getVideoMaxSize, getVideoSize, getVideoSizeSelector, getWhiteBalance, getZoomValue, hasFrameProcessors, isTakingPicture, isTakingVideo, onPictureShutter, onSurfaceChanged, onVideoRecordingStart, setAudio, setAudioBitRate, setAudioCodec, setAutoFocusResetDelay, setFacing, setFrameProcessingMaxHeight, setFrameProcessingMaxWidth, setFrameProcessingPoolSize, setMode, setOverlay, setPictureMetering, setPictureSizeSelector, setPictureSnapshotMetering, setPreview, setPreviewFrameRateExact, setPreviewStreamSizeSelector, setSnapshotMaxHeight, setSnapshotMaxWidth, setVideoBitRate, setVideoCodec, setVideoMaxDuration, setVideoMaxSize, setVideoSizeSelector, stopVideo, takePicture, takePictureSnapshot, takeVideo, takeVideoSnapshot
      • Methods inherited from class com.otaliastudios.cameraview.engine.CameraEngine

        destroy, getPictureSize, getState, getTargetState, getVideoSize, isChangingState, onSurfaceAvailable, onSurfaceDestroyed, restart, setExposureCorrection, setFlash, setFrameProcessingFormat, setHasFrameProcessors, setPictureFormat, setZoom, start, startAutoFocus, stop, takePicture, takeVideo, takeVideoSnapshot
      • Methods inherited from class android.media.ImageReader.OnImageAvailableListener

        onImageAvailable
      • Methods inherited from class com.otaliastudios.cameraview.engine.action.ActionHolder

        addAction, removeAction
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait