Android.Hardware.Camera2 Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The android.hardware.camera2 package provides an interface to individual camera devices connected to an Android device.
Classes
| Name | Description |
|---|---|
| CameraAccessException |
|
| CameraCaptureSession |
A configured capture session for a |
| CameraCaptureSession.CaptureCallback |
A callback object for tracking the progress of a |
| CameraCaptureSession.StateCallback |
A callback object for receiving updates about the state of a camera capture session. |
| CameraCharacteristics |
The properties describing a
|
| CameraCharacteristics.Key |
A |
| CameraConstrainedHighSpeedCaptureSession |
A constrained high speed capture session for a |
| CameraDevice |
The CameraDevice class is a representation of a single camera connected to an Android device, allowing for fine-grain control of image capture and post-processing at high frame rates. |
| CameraDevice.CameraDeviceSetup |
CameraDeviceSetup is a limited representation of |
| CameraDevice.StateCallback |
A callback objects for receiving updates about the state of a camera device. |
| CameraExtensionCharacteristics |
Allows clients to query availability and supported resolutions of camera extensions. |
| CameraExtensionSession |
A camera capture session that enables access to device-specific camera extensions, which often use multi-frame bursts and sophisticated post-process algorithms for image capture. |
| CameraExtensionSession.ExtensionCaptureCallback |
A callback object for tracking the progress of a
|
| CameraExtensionSession.StateCallback |
A callback object for receiving updates about the state of a camera extension session. |
| CameraExtensionSession.StillCaptureLatency |
Realtime calculated still |
| CameraManager |
A system service manager for detecting, characterizing, and connecting to
|
| CameraManager.AvailabilityCallback |
A callback for camera devices becoming available or unavailable to open. |
| CameraManager.TorchCallback |
A callback for camera flash torch modes becoming unavailable, disabled, or enabled. |
| CameraMetadata |
The base class for camera controls and information. |
| CameraOfflineSession |
A camera capture session that was switched to offline mode via successful call to
|
| CameraOfflineSession.CameraOfflineSessionCallback |
Receives notifications about the state of an offline camera capture session. |
| CaptureFailure |
A report of failed capture for a single image capture from the image sensor. |
| CaptureRequest |
An immutable package of settings and outputs needed to capture a single image from the camera device. |
| CaptureRequest.Builder |
A builder for capture requests. |
| CaptureRequest.InterfaceConsts |
Contains constants from the Android interfaces implemented by CaptureRequest. |
| CaptureRequest.Key |
A |
| CaptureResult |
The subset of the results of a single image capture from the image sensor. |
| CaptureResult.Key |
A |
| DngCreator |
The |
| MultiResolutionImageReader |
The MultiResolutionImageReader class wraps a group of |
| MultiResolutionImageReader.ActiveOutputSurfacesEventArgs |
Provides the active output surfaces, timestamp, and frame number for a multi-resolution capture. |
| MultiResolutionImageReader.Builder |
Builder class for |
| TotalCaptureResult |
The total assembled results of a single image capture from the image sensor. |
Interfaces
| Name | Description |
|---|---|
| MultiResolutionImageReader.IOnActiveOutputSurfacesListener |
Callback interface for being notified of the surfaces used for the capture. |
Enums
| Name | Description |
|---|---|
| AutomotiveLensFacing |
Specifies the direction in which a vehicle camera faces. |
| AutomotiveLocation |
Specifies the location of a camera on a vehicle. |
| CameraAccessErrorType |
Enumerates values returned by several types and taken as a parameter of several methods of CameraAccessException. |
| CameraDeviceAudioRestrictionType |
Specifies the vibration and sound restrictions for a camera device. |
| CameraError |
Enumerates values returned by several methods of CameraError and taken as a parameter of the F:Android.Hardware.Camera2.CameraDevice+StateCallback.OnError member. |
| CameraExtensionTypes |
Specifies a device-specific camera extension. |
| CameraTemplate |
Enumerates values returned by several methods of CameraTemplate and taken as a parameter of the F:Android.Hardware.Camera2.CameraDevice.CreateCaptureRequest member. |
| CaptureFailureReason |
Enumerates values returned by the Reason, Error, and Flushed members. |
| ColorCorrectionAberrationMode |
Enumerates values returned by the Fast, HighQuality, and Off members. |
| ColorCorrectionMode |
Enumerates values returned by the Fast, HighQuality, and TransformMatrix members. |
| ControlAEAntibanding |
Enumerates values returned by several methods of ControlAEAntibanding. |
| ControlAEMode |
Enumerates values returned by several methods of ControlAEMode. |
| ControlAEPrecaptureTrigger | |
| ControlAePriorityMode |
Specifies the sensor setting that automatic exposure must prioritize. |
| ControlAEState |
Enumerates values returned by several methods of ControlAEState. |
| ControlAFMode |
Enumerates values returned by several methods of ControlAFMode. |
| ControlAFState |
Enumerates values returned by several methods of ControlAFState. |
| ControlAFTrigger |
Enumerates values returned by the Cancel, Idle, and Start members. |
| ControlAutoFraming |
Specifies whether automatic framing is enabled. |
| ControlAutoFramingState |
Specifies the current state of automatic framing. |
| ControlAwbMode |
Enumerates values returned by several methods of ControlAwbMode. |
| ControlAwbState |
Enumerates values returned by several methods of ControlAwbState. |
| ControlCaptureIntent |
Enumerates values returned by several methods of ControlCaptureIntent. |
| ControlEffectMode |
Enumerates values returned by several methods of ControlEffectMode. |
| ControlExtendedSceneMode |
Specifies an extended scene mode for camera capture. |
| ControlLowLightBoostState |
Specifies whether low-light boost is active. |
| ControlMode |
Enumerates values returned by several methods of ControlMode. |
| ControlSceneMode |
Enumerates values returned by several methods of ControlSceneMode. |
| ControlSettingsOverride |
Specifies which capture settings can be applied before other settings. |
| ControlVideoStabilizationMode | |
| ControlZoomMethod |
Specifies how the camera determines the zoom method. |
| EdgeMode |
Enumerates values returned by the Fast, HighQuality, and Off members. |
| ExtensionNightModeIndicator |
Specifies whether a night-mode camera extension could improve a capture. |
| FlashMode |
Enumerates values returned by the Off, Single, and Torch members. |
| FlashState |
Enumerates values returned by several methods of FlashState. |
| HotPixelMode |
Enumerates values returned by the Fast, HighQuality, and Off members. |
| InfoSupportedHardwareLevel |
Enumerates values returned by the Full, Legacy, and Limited members. |
| LensFacing | |
| LensInfoFocusDistanceCalibration |
Enumerates values returned by the Approximate, Calibrated, and Uncalibrated members. |
| LensOpticalStabilizationMode | |
| LensState |
Enumerates values returned by the Moving, and Stationary members. |
| NoiseReductionMode |
Enumerates values returned by the Fast, HighQuality, and Off members. |
| RequestAvailableCapabilities |
Enumerates values returned by several methods of RequestAvailableCapabilities. |
| ScalerAvailableStreamUseCases |
Specifies a use case for a camera output stream. |
| ScalerCroppingType |
Enumerates values returned by the CenterOnly, and Freeform members. |
| ScalerRotateAndCropType |
Specifies how captured images are rotated and cropped. |
| SensorInfoColorFilterArrangement |
Enumerates values returned by several methods of SensorInfoColorFilterArrangement. |
| SensorInfoTimestampSource |
Enumerates values returned by the Realtime, and Unknown members. |
| SensorPixelMode |
Specifies the sensor pixel mode used for capture. |
| SensorReadoutTimestampType |
Specifies camera support for sensor readout timestamps. |
| SensorReferenceIlluminant1 |
Enumerates values returned by several methods of SensorReferenceIlluminant1. |
| SensorTestPatternMode |
Enumerates values returned by several methods of SensorTestPatternMode. |
| SessionErrorStatus |
Specifies an error status for an offline camera session. |
| ShadingMode |
Enumerates values returned by the Fast, HighQuality, and Off members. |
| StatisticsFaceDetectMode |
Enumerates values returned by the Full, Off, and Simple members. |
| StatisticsLensShadingMapMode | |
| StatisticsSceneFlicker |
Enumerates values returned by the None, S50hz, and S60hz members. |
| SyncMaxLatency |
Enumerates values returned by the PerFrameControl, and Unknown members. |
| TonemapMode |
Enumerates values returned by the ContrastCurve, Fast, and HighQuality members. |
| TonemapPresetCurveType |
Specifies a preset tone-mapping curve for camera capture. |
Remarks
Use CameraManager to find and open camera devices. Create a capture session with output surfaces, then submit capture requests. Capture requests define the capture settings and target surfaces. Results provide capture metadata, while image buffers are sent to the target surfaces.