get Scan Result From Activity Result
Extract the result of the scan flow if it was successful or throw an error if something went wrong.
Return
the result of the scan flow
Parameters
result
The intent provided by the onActivityResult callback
Throws
The error thrown during the scan flow