CameraXAdapter
class CameraXAdapter(activity: Activity, previewView: ViewGroup, minimumResolution: Size, cameraErrorListener: CameraErrorListener, startWithBackCamera: Boolean = true) : CameraAdapter<CameraPreviewImage<Bitmap>>
CameraAdaptor implementation with CameraX, should be used in favor or Camera1Adapter.
Constructors
Link copied to clipboard
constructor(activity: Activity, previewView: ViewGroup, minimumResolution: Size, cameraErrorListener: CameraErrorListener, startWithBackCamera: Boolean = true)
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
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.