get Promise Result From Activity Result
fun getPromiseResultFromActivityResult(context: Context, requestCode: Int, resultCode: Int, data: Intent?): PromiseResult?
Convert the intent response into a PromiseResult.
Return
An object containing the result of the scan flow or an error message
Parameters
context
A context used to serialize the response object
request Code
The request code received by the onActivityResult method
result Code
The result code received by the onActivityResult method
data
The data received by the onActivityResult method