Package 

Object CoroutineContinuationHelper.Companion

    • Method Detail

      • callbackContinuation

        @JvmOverloads() final <R extends Any> Continuation<R> callbackContinuation(CoroutineContinuationHelper.ContinuationCallback<R> callback, Looper looper)

        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)
      • callbackContinuation

        @JvmOverloads() final <R extends Any> Continuation<R> callbackContinuation(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