Supported on Android and iOS targets

Quick start

The camera picker component provides a native interface for users to capture photos using their device’s camera.

val file = FileKit.openCameraPicker()

Camera type

You can specify the type of media to capture using the type parameter:

  • Photo - Capture a photo (default)
  • Video - Capture a video (coming soon)
val file = FileKit.openCameraPicker(type = FileKitCameraType.Photo)

Video capture support is planned for a future release.

The captured media file is automatically saved to a temporary location. If you need to keep the file permanently, make sure to copy it to a permanent storage location.