Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resetWithError not working #198

Open
slimyjimmy opened this issue Aug 5, 2021 · 0 comments
Open

resetWithError not working #198

slimyjimmy opened this issue Aug 5, 2021 · 0 comments

Comments

@slimyjimmy
Copy link

Hi,

I'm trying to use resetWithError() in my app, but it doesn't show an error (see video).

RPReplay_Final1628168341.mov

Configuration of the viewController:

viewController metadata = [AVMetadataObject.ObjectType.ean13]
viewController.isOneTimeSearch = true
viewController.headerViewController.closeButton.isHidden = true
viewController.headerViewController.titleLabel.text = ""
viewController.codeDelegate = self
viewController.errorDelegate = self

Callbacks:

func scanner(_ controller: BarcodeScannerViewController, didCaptureCode code: String, type: String) {
        controller.resetWithError(message: "test error")
    }
func scanner(_ controller: BarcodeScannerViewController, didReceiveError error: Error) {
        controller.resetWithError(message: "Error")
    }

Am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant