CameraProvider

interface CameraProvider

An interface declaring a provider of camera capturers.

Properties

Link copied to clipboard
abstract val cameraVersion: Int

This acts as the priority of the CameraProvider when determining which provider to use (in order of highest to lowest).

Functions

Link copied to clipboard
abstract fun isSupported(context: Context): Boolean

If the return value of this method is false, this provider will be skipped when querying providers to use.

Link copied to clipboard
abstract fun provideCapturer(context: Context, options: LocalVideoTrackOptions, eventsHandler: CameraEventsDispatchHandler): VideoCapturer
Link copied to clipboard
abstract fun provideEnumerator(context: Context): CameraEnumerator