Google 致力于为黑人社区推动种族平等。查看具体举措

androidx.camera.core

Interfaces

Camera

The camera interface is used to control the flow of data to use cases, control the camera via the CameraControl, and publish the state of the camera via CameraInfo.

CameraControl

The CameraControl provides various asynchronous operations like zoom, focus and metering which affects output of all UseCases currently bound to that camera.

CameraFilter

An interface for filtering cameras.

CameraInfo

An interface for retrieving camera information.

Provider

An interface which can be implemented to provide the configuration for CameraX.

ExtendableBuilder

Extendable builders are used to add externally defined options that can be passed to the implementation being built.

Analyzer

Interface for analyzing images.

OnImageSavedCallback

Listener containing callbacks for image file I/O events.

ImageInfo

Metadata for an image.

ImageProxy

An image proxy which has a similar interface as android.media.Image.

SurfaceProvider

A interface implemented by the application to provide a Surface for Preview.

ZoomState

An interface which contains the zoom related information from a camera.

Classes

AspectRatio

The aspect ratio of the use case.

CameraSelector

A set of requirements and priorities used to select a camera.

CameraXConfig

A configuration for adding implementation and user-specific behavior to CameraX.

DisplayOrientedMeteringPointFactory

A MeteringPointFactory that can convert a View (x, y) into a MeteringPoint which can then be used to construct a FocusMeteringAction to start a focus and metering action.

FocusMeteringAction

A configuration used to trigger a focus and/or metering action.

FocusMeteringResult

Result of the CameraControl#startFocusAndMetering(FocusMeteringAction).

ImageAnalysis

A use case providing CPU accessible images for an app to perform image analysis on.

ImageCapture

A use case for taking a picture.

MeteringPoint

A is used to specify a region which can then be converted to sensor coordinate system for focus and metering purpose.

MeteringPointFactory

A factory to create a MeteringPoint.

Preview

A use case that provides a camera preview stream for displaying on-screen.

SurfaceOrientedMeteringPointFactory

A MeteringPointFactory that can create MeteringPoint by surface oriented x, y on an area defined by (0, 0) - (width, height).

SurfaceRequest

A completable, single-use request of a Surface.

TorchState

The camera flash torch state.

UseCase

The use case which all other use cases are built on top of.

UseCaseGroup

Represents a collection of UseCase.

ViewPort

The field of view of one or many UseCases.

Exceptions

CameraInfoUnavailableException

An exception thrown when unable to retrieve information about a camera.

CameraUnavailableException

CameraUnavailableException is thrown when a camera device could not be queried or opened or if the connection to an opened camera device is no longer valid.

ImageCaptureException

An exception thrown to indicate an error has occurred during image capture or while saving the captured image.

InitializationException

InitializationException is thrown when a failure occurs during an initialization process.

Annotations

ExperimentalCameraFilter

Denotes that the annotated method uses an experimental API that customizes camera filters to select a specific camera.

ExperimentalCustomizableThreads

Denotes that the annotated method uses an experimental API that swaps the default threading implementation with a user-defined threading implementation.

ExperimentalGetImage

Denotes that the annotated method uses the experimental ImageProxy#getImage() method.

ExperimentalUseCaseGroup

Denotes that the annotated classes and methods uses the experimental feature which provides a grouping mechanism for UseCases.