Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

[FEATURE] Add a way to pause the camera preview, or clear the list of scanned barcodes. #24

@maartenvang

Description

@maartenvang

Right now, calling barcodeView.start() or lifecycle.addObserver(barcodeView) starts the camera preview. Calling barcodeView.pause() does pause the barcode scanning, but not the preview. In order to actually pause the view, I have to call barcodeView.release(). This kinda works, but when starting the barcode view again, the onBarcodeListener gets called with the previous scanned value instantly.

Describe the solution you'd like
It would be great to have a way to stop the preview and barcode scanning altogether, and restart it later, without it firing the onBarcodeListener when resuming.

That would be possible through a pausePreview() and resumePreview method I suppose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions