Package-level declarations

Types

Link copied to clipboard
class CameraConfiguration(val recordingColor: Color = Color(0xFFDE6F62), val maxTotalDuration: Duration = Duration.INFINITE, val allowExceedingMaxDuration: Boolean = false, val captureType: CaptureType = CaptureType.Video, val captureCount: CaptureCount = CaptureCount.Multi, val photoClipDuration: Duration = 5.seconds, val showsPhotoPreview: Boolean = true) : Parcelable

Configuration for the camera.

Link copied to clipboard

Determines the layout of the two video feeds in reaction mode.

Link copied to clipboard

Represents the different modes the camera can operate in.

Link copied to clipboard

Wraps the result of the camera.

Link copied to clipboard
interface Capture : Parcelable

A single entry in a heterogeneous capture stack. Returned inside CameraResult.Captures for any CaptureType: video-only sessions yield Capture.Video entries, photo sessions yield Capture.Photo entries, and mixed sessions yield a stack of both.

Link copied to clipboard

Determines whether the camera produces a single capture per session or a stack of captures.

Link copied to clipboard

An ActivityResultContract to start the IMG.LY Camera with the Input. The output is a CameraResult — either CameraResult.Captures for standard photo / video / mixed sessions, or CameraResult.Reaction for reaction sessions.

Link copied to clipboard

Determines what kind of media the camera can capture.

Link copied to clipboard

Legacy entry point for the IMG.LY Camera. Renamed to CaptureMedia, which supports photo, video, and mixed capture sessions and delivers the modern CameraResult.Captures result.

Link copied to clipboard
data class EngineConfiguration(val license: String? = null, val userId: String? = null, val host: String = "") : Parcelable

Basic configuration settings to initialize the engine.

Link copied to clipboard
data class Recording(val videos: List<Video>, val duration: Duration) : Parcelable

A camera recording.

Link copied to clipboard
data class Video(val uri: Uri, val rect: RectF) : Parcelable

A video in a Recording.

Properties

Link copied to clipboard

Extracts video recordings from a heterogeneous capture stack. Migration shortcut for hosts that previously consumed CameraResult.Record's recordings: List<Recording>.

Functions

Link copied to clipboard

Returns whether this CameraMode can be combined with the given captureType.