ScanFragment
Fragment managing the access to the camera and holding a preview.
The parent activity or fragment must implement the CameraCallbackProvider interface. The parent component also needs to initialize the camera by calling initializeCamera, usually in the onResume() method, after making sure the permission to use the camera has been granted.
Types
Properties
Functions
Setup the camera and start the preview. This needs to be called by the parent activity in Activity#onResume().
Set a callback to receive barcode detection events.
Sets the listener receiving real-time border detection updates on the main thread.
Set the camera flash mode. It's best to call .a to make sure that the camera supports this flash mode.
Sets the JPEG quality of camera output pictures. This method can only be called when the camera is ready.
Stop the real-time border detection and capture the image The provided callback is invoked on the main thread.
Toggles the flash mode to the next available flash mode. It's best to call availableFlashModes to make sure that the camera supports this flash mode.