Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

iOS - tracking of disappearing event when swiping out the scanning dialog #881

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

inverplax
Copy link

@inverplax inverplax commented Jul 20, 2020

In order to solve the swipe-out action on ios 13, I thought it was a good idea to trigger a closing of the scanning session whe user swipe the dialog out.
I have added two properties in class CDVbcsProcessor

  1. isSuccess, in order to know when the scan is completed successfully
  2. isCancelled, in order to know when user presses 'cancel' button.

In the CDVbcsViewController class there is now a method viewWillDisappear that is triggered when the scanning dialog is about to close. When the dialog is about close and it doesn't happen due to a successful scan or a cancel of the dialog, then
the barcodeScanCancelled is invoked.

@inverplax inverplax changed the title tracking of disappearing event iOS - tracking of disappearing event Jul 20, 2020
@inverplax inverplax changed the title iOS - tracking of disappearing event iOS - tracking of disappearing event when swiping out the scanning dialog Jul 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants