InPersonPaymentsTools

A set of tools and helpers to accompany InPersonPayments.

Functions

Link copied to clipboard
@JvmStatic
@JvmName(name = "getInitializationState")
suspend fun getInitializationState(): InitializationState

This suspend function observes the SDK's initialization state and pauses the calling coroutine until the process finishes with either a success or failure state. It is useful when an action in your application depends on the SDK being fully initialized.

Link copied to clipboard
@JvmStatic
@JvmName(name = "initializeManually")
suspend fun initializeManually(context: Context): InitializationState

Triggers manual initialization of the SDK and waits for it to complete.

Link copied to clipboard
@JvmStatic
@JvmName(name = "shouldSkipAppInitialize")
fun shouldSkipAppInitialize(context: Context): Boolean

Checks if the current process is the dedicated process for the In-Person Payments SDK.