Closed rajiniyadav closed 6 months ago
Do you have a native integration or do you use a crossplatform plugin? If it's a native integration, for which platform do you need help? Android, iOS, both?
I'm using native android using Java.
Following demo-simple
Ok, then, you can check if a user cancels a ScanFlow by checking if the resultCode
is RESULT_CANCELED
in the onActivityResult
callback.
Here is where you would check this in the SimpleDemo: https://github.com/thegrizzlylabs/geniusscan-sdk-demo/blob/master/android/demo-simple/src/main/java/com/geniusscansdk/simpledemo/MainActivity.java#L123
Thanks a lot, its works.
i'm using react-native and need to handle a Cancel event. Could you assist please?
i'm using react-native and need to handle a Cancel event. Could you assist please?
You can catch the exceptions from RNGeniusScan.scanWithConfiguration
and check if the error code is E_SCAN_CANCELED
Hello,
I need to handle if user clicked cancel or quit the Genius camera? I need show some popup/log the data to server.
Could you pls help on this
Thanks