Stay organized with collections
Save and categorize content based on your preferences.
android.hardware.camera2
Classes
Exceptions
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# android.hardware.camera2\n========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/hardware/camera2/package-summary \"View this page in Java\")\n\nClasses\n-------\n\n|---------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CameraCaptureSession](/reference/kotlin/android/hardware/camera2/CameraCaptureSession) | A configured capture session for a [CameraDevice](/reference/kotlin/android/hardware/camera2/CameraDevice), used for capturing images from the camera or reprocessing images captured from the camera in the same session previously. |\n| [CameraCharacteristics](/reference/kotlin/android/hardware/camera2/CameraCharacteristics) | The properties describing a [CameraDevice](/reference/kotlin/android/hardware/camera2/CameraDevice). |\n| [CameraConstrainedHighSpeedCaptureSession](/reference/kotlin/android/hardware/camera2/CameraConstrainedHighSpeedCaptureSession) | A constrained high speed capture session for a [CameraDevice](/reference/kotlin/android/hardware/camera2/CameraDevice), used for capturing high speed images from the [CameraDevice](/reference/kotlin/android/hardware/camera2/CameraDevice) for high speed video recording use case. |\n| [CameraDevice](/reference/kotlin/android/hardware/camera2/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. |\n| [CameraExtensionCharacteristics](/reference/kotlin/android/hardware/camera2/CameraExtensionCharacteristics) | Allows clients to query availability and supported resolutions of camera extensions. |\n| [CameraExtensionSession](/reference/kotlin/android/hardware/camera2/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. |\n| [CameraManager](/reference/kotlin/android/hardware/camera2/CameraManager) | A system service manager for detecting, characterizing, and connecting to [CameraDevices](/reference/kotlin/android/hardware/camera2/CameraDevice). |\n| [CameraMetadata](/reference/kotlin/android/hardware/camera2/CameraMetadata) | The base class for camera controls and information. |\n| [CameraOfflineSession](/reference/kotlin/android/hardware/camera2/CameraOfflineSession) | A camera capture session that was switched to offline mode via successful call to [CameraCaptureSession.switchToOffline](/reference/kotlin/android/hardware/camera2/CameraCaptureSession#switchToOffline(kotlin.collections.MutableCollection,%20java.util.concurrent.Executor,%20android.hardware.camera2.CameraOfflineSession.CameraOfflineSessionCallback)). |\n| [CaptureFailure](/reference/kotlin/android/hardware/camera2/CaptureFailure) | A report of failed capture for a single image capture from the image sensor. |\n| [CaptureRequest](/reference/kotlin/android/hardware/camera2/CaptureRequest) | An immutable package of settings and outputs needed to capture a single image from the camera device. |\n| [CaptureResult](/reference/kotlin/android/hardware/camera2/CaptureResult) | The subset of the results of a single image capture from the image sensor. |\n| [DngCreator](/reference/kotlin/android/hardware/camera2/DngCreator) | The [DngCreator](/reference/kotlin/android/hardware/camera2/DngCreator) class provides functions to write raw pixel data as a DNG file. |\n| [MultiResolutionImageReader](/reference/kotlin/android/hardware/camera2/MultiResolutionImageReader) | The MultiResolutionImageReader class wraps a group of [ImageReaders](../../media/ImageReader.html#) with the same format and different sizes, source camera Id, or camera sensor modes. |\n| [TotalCaptureResult](/reference/kotlin/android/hardware/camera2/TotalCaptureResult) | The total assembled results of a single image capture from the image sensor. |\n\nExceptions\n----------\n\n|-------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CameraAccessException](/reference/kotlin/android/hardware/camera2/CameraAccessException) | `CameraAccessException` is thrown if a camera device could not be queried or opened by the [CameraManager](/reference/kotlin/android/hardware/camera2/CameraManager), or if the connection to an opened [CameraDevice](/reference/kotlin/android/hardware/camera2/CameraDevice) is no longer valid. |"]]