Package-level declarations

A convenient view for starting and interacting with the camera.

Types

Link copied to clipboard
class CameraView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, @AttrRes defStyleAttr: Int = 0, @StyleRes defStyleRes: Int = 0) : FrameLayout

The CameraView provides a straightforward way to create and manage a camera. On creation, the view will display the camera's preview and provide access to preview frames through the previewFrames property, if video recording is enabled the video recording will start automatically. When the CameraView goes into Lifecycle.Event.ON_PAUSE the camera will be released and the video recording will stop and be discarded. Completed video recordings will be posted on the recordedVideo property.