API
Core Module
Documentation for compose-camera-core.
Core Module
The compose-camera-core module provides the fundamental building blocks for camera integration. It abstracts the platform-specific implementations (CameraX for Android, AVFoundation for iOS) into a unified, Kotlin-first API.
Installation
implementation("io.github.l2hyunwoo:compose-camera-core:1.2.2")Key Components
- CameraController: The main entry point for controlling the camera.
- CameraConfiguration: Data class defining the desired camera state.
- CameraControl: Interface for runtime camera adjustments.
- CameraInfo: Read-only observable camera state.
- Enums: Definitions for
CameraLens,FlashMode, etc. - Data Classes:
Resolution,FocusPoint, etc. - Exceptions: Error handling.
- Plugin Interfaces: Base interfaces for extending functionality.