create
fun create(from: ComponentActivity, stripePublishableKey: String, config: CardImageVerificationSheet.Configuration = Configuration(), cardImageVerificationResultCallback: CardImageVerificationSheet.CardImageVerificationResultCallback, registry: ActivityResultRegistry = from.activityResultRegistry): CardImageVerificationSheet
Create a CardImageVerificationSheet instance with ComponentActivity.
This API registers an ActivityResultLauncher into the ComponentActivity, it must be called before the ComponentActivity is created (in the onCreate method).
fun create(from: Fragment, stripePublishableKey: String, config: CardImageVerificationSheet.Configuration = Configuration(), cardImageVerificationResultCallback: CardImageVerificationSheet.CardImageVerificationResultCallback, registry: ActivityResultRegistry? = null): CardImageVerificationSheet
Create a CardImageVerificationSheet instance with Fragment.
This API registers an ActivityResultLauncher into the Fragment, it must be called before the Fragment is created (in the onCreate method).