Skip to content

[camera] Add Preview use case to CameraX plugin #111141

@camsim99

Description

@camsim99

Overview

In the CameraX library, the Preview class is used to provide a camera preview stream for display, and thus, will need to be wrapped in the CameraX plugin.

Requirements

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

Subclasses

Preview.Builder
  • [ ] Preview.Builder setTargetRotation(int rotation) (not needed upon further research)
Preview.SurfaceProvider
  • void onSurfaceRequested(SurfaceRequest request) (used only on the native side)

Instance Methods

  • void setSurfaceProvider(...)*
  • void setTargetRotation(int targetRotation) (used only on the native side)

*One implementation will need to be picked. Both rely on Preview.SurfaceProvider.

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