Camera1Adapter
class Camera1Adapter( activity: Activity, previewView: ViewGroup, minimumResolution: Size, cameraErrorListener: CameraErrorListener, startWithBackCamera: Boolean = true) : CameraAdapter<CameraPreviewImage<Bitmap>> , Camera.PreviewCallback
Content copied to clipboard
A CameraAdapter that uses android's Camera 1 APIs to show previews and process images.
Constructors
Link copied to clipboard
fun Camera1Adapter( activity: Activity, previewView: ViewGroup, minimumResolution: Size, cameraErrorListener: CameraErrorListener, startWithBackCamera: Boolean = true)
Content copied to clipboard
Functions
Link copied to clipboard
Bind this camera manager to a lifecycle.
Link copied to clipboard
Change to a new camera.
Link copied to clipboard
Determine which camera is currently in use.
Link copied to clipboard
Get the stream of images from the camera. This is a hot Flow of images with a back pressure strategy DROP. Images that are not read from the flow are dropped. This flow is backed by a Channel.
Link copied to clipboard
Determine if the adapter is currently bound.
Link copied to clipboard
Link copied to clipboard
open override fun onStateChanged(source: LifecycleOwner, event: Lifecycle.Event)
Content copied to clipboard
Link copied to clipboard
Turn the camera torch on or off.
Link copied to clipboard
Unbind this camera from a lifecycle. This will pause the camera.
Link copied to clipboard
Execute a task with flash support.
Link copied to clipboard
Determine if the device has multiple cameras.