package com.codename1.camera
Session based camera API for live preview, photo capture and video recording.
A CameraSession is configured through CameraSessionOptions (selecting the
CameraFacing, FlashMode, FrameFormat and so on) and rendered through a
CameraView using a ScaleType. Individual CameraFrames can be observed
with a FrameListener, still images are returned as a CapturedPhoto
according to PhotoCaptureOptions, and movies are produced as a
VideoRecording. CameraInfo describes the devices available on the
platform.
Types
class Camera | Entry point for the low-level cross-platform camera API. |
enum CameraFacing | Direction a camera faces relative to the device screen. |
class CameraFrame | A single frame delivered to a FrameListener. |
class CameraInfo | Describes a physical camera available on the device. |
class CameraSession | Active camera session. |
class CameraSessionOptions | Configuration for a CameraSession. |
class CameraView | Component that renders a live camera preview. |
class CapturedPhoto | Result of a still-photo capture via CameraSession#takePhoto(). |
enum FlashMode | Flash behavior for still capture or continuous illumination. |
enum FrameFormat | Pixel format requested for CameraFrame data delivered to a FrameListener. |
interface FrameListener | Receives camera frames from an active CameraSession. |
class PhotoCaptureOptions | Per-capture options for CameraSession#takePhoto(PhotoCaptureOptions). |
enum ScaleType | How the live preview from a CameraView is fitted inside its component bounds. |
class VideoRecording | Handle for an in-progress video recording started via CameraSession#startVideoRecording(String). |