Skip to main content

Camera & Media

PrismCameraClient wraps AVFoundation’s capture pipeline into a clean, Sendable API. Capture photos and video without managing AVCaptureSession, delegates, or output configurations directly.

Permissions

Camera Permission

Camera Positions

Photo Capture

Capture a Photo

Photo Quality Levels

Flash Modes

Video Capture

Switch to video mode for recording:
Record Video

Switching Cameras

Switch Camera
Always call camera.stop() when you’re done. The camera session holds hardware resources and will prevent other apps from accessing the camera.

Photo Picker

For selecting existing media from the photo library, use PrismPhotoPicker from PrismUI:
Photo Picker (PrismUI)