getPromiseResultFromActivityResult

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

requestCode

The request code received by the onActivityResult method

resultCode

The result code received by the onActivityResult method

data

The data received by the onActivityResult method