Skip to content

[camera] Add ImageCapture use case to CameraX plugin #111140

@camsim99

Description

@camsim99

Overview

In the CameraX library, the ImageCapture class is used to take a picture, and thus, will need to be wrapped in the CameraX plugin.

Requirements

The following is a running list of the subclasses, constants, and methods required for adding the ImageCapture class to the CameraX plugin.

Subclasses

ImageCapture.Builder
  • ImageCapture.Builder setCaptureMode(int captureMode)
  • ImageCapture.Builder setFlashMode(int flashMode)
  • ImageCapture.Builder setTargetRotation(int rotation)
ImageCapture.OnImageCapturedCallback
  • void onCaptureSuccess(ImageProxy image)
  • void onError(ImageCaptureException exception)

Constants

  • int FLASH_MODE_AUTO
  • int FLASH_MODE_OFF
  • int FLASH_MODE_ON

Instance Methods

  • void setFlashMode(int flashMode)
  • void setTargetRotation(int rotation)
  • void takePicture(...)*

*One implementation will need to be picked. Depending on the choice, ImageCapture.OutputFileOptions may need to be additionally wrapped.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions