callback Continuation
public final Continuation<R> callbackContinuation<R extends Any>(CoroutineContinuationHelper.ContinuationCallback<R> callback, Looper looper)
public final Continuation<R> callbackContinuation<R extends Any>(CoroutineContinuationHelper.ContinuationCallback<R> callback)
Helper function to get the result of a Kotlin coroutine continuation in a callback.
You should use this function if you can't use Kotlin coroutines when invoking suspending functions in the Bank SDK's public API (e.g., GiniBank.getPaymentRequest() or GiniBank.resolvePaymentRequest()).
Parameters
callback
to return the continuation result
looper
to use for invoking the callback on a specific thread (using a Handler)