ScanFragmentX

Implementation of ScanFragment using CameraX API

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
open fun initializeCamera()
Setup the camera and start the preview.
Link copied to clipboard
Link copied to clipboard
open fun onAttach(@NonNull context: Context)
Link copied to clipboard
open fun onCreateView(@NonNull inflater: LayoutInflater, container: ViewGroup, savedInstanceState: Bundle): View
Link copied to clipboard
open fun onPause()
Link copied to clipboard
open fun onViewCreated(@NonNull view: View, @Nullable savedInstanceState: Bundle)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setFlashMode(@NonNull flashMode: FlashMode)
Set the camera flash mode.
Link copied to clipboard
open fun setFocusIndicator(@Nullable focusIndicator: FocusIndicator)
Link copied to clipboard
open fun setJpegQuality(jpegQuality: Int)
Set the JPEG quality of camera output pictures.
Link copied to clipboard
open fun setOverlayColor(colorResId: Int)
Link copied to clipboard
open fun setOverlayColorResource(@ColorRes colorResId: Int)
Link copied to clipboard
open fun setPreviewAspectFill(isAspectFill: Boolean)
Link copied to clipboard
open fun setPreviewEnabled(enabled: Boolean)
Link copied to clipboard
Link copied to clipboard

open fun takePicture(callback: ImageCaptureCallback, focusBeforeTrigger: Boolean): Boolean
Stop the real-time border detection and capture the image
Link copied to clipboard
Toggle the flash mode to the next available flash mode.