TeyaPosLinkPaymentInProgressUi

@ObjCName(name = "create")
@JvmName(name = "create")
fun TeyaPosLinkPaymentInProgressUi(autoDismissOnFinalStateAfterMs: Long = 2000, onDismiss: (PaymentStateSubscription.PaymentStateDetails) -> Unit? = null): PaymentStateSubscription.PaymentStateChangeListener

Provides a com.teya.unifiedepossdk.PaymentStateSubscription.PaymentStateChangeListener to be used with com.teya.unifiedepossdk.PaymentStateSubscription.subscribe for displaying the Teya UI during an ongoing payment process.

The UI will automatically dismiss upon reaching a final state. Alternatively, the same instance can be passed to com.teya.unifiedepossdk.PaymentStateSubscription.unsubscribe to manually hide the UI.

Parameters

autoDismissOnFinalStateAfterMs

The time in milliseconds on reaching final state, after which the UI will be dismissed

onDismiss

Optional callback invoked after dismissing the UI with the current PaymentStateSubscription.PaymentStateDetails.