Package com.codename1.camera


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.

  • Class
    Description
    Entry point for the low-level cross-platform camera API.
    Direction a camera faces relative to the device screen.
    A single frame delivered to a FrameListener.
    Describes a physical camera available on the device.
    Active camera session.
    Configuration for a CameraSession.
    Component that renders a live camera preview.
    Result of a still-photo capture via CameraSession#takePhoto().
    Flash behavior for still capture or continuous illumination.
    Pixel format requested for CameraFrame data delivered to a FrameListener.
    Receives camera frames from an active CameraSession.
    Per-capture options for CameraSession#takePhoto(PhotoCaptureOptions).
    How the live preview from a CameraView is fitted inside its component bounds.
    Handle for an in-progress video recording started via CameraSession#startVideoRecording(String).