-
public final class KotlinExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final Unit
,Function1)>handleActivityResult(CardEntry $self, <ERROR CLASS> data, Function1<CardEntryActivityResult, Unit> callback)
final Unit
setCardNonceBackgroundHandler(CardEntry $self, Function1<CardDetails, CardEntryActivityCommand> handler)
Adds a callback to handle the result of the card entry prior to finishing the card entry activity. final <T extends Any> Unit
enqueue(Call<T> $self, Function1<T, Unit> callback)
Asynchronously send the request and notify callback
of the result.-
-
Method Detail
-
handleActivityResult
final Unit ,Function1)>handleActivityResult(CardEntry $self, <ERROR CLASS> data, Function1<CardEntryActivityResult, Unit> callback)
-
setCardNonceBackgroundHandler
final Unit setCardNonceBackgroundHandler(CardEntry $self, Function1<CardDetails, CardEntryActivityCommand> handler)
Adds a callback to handle the result of the card entry prior to finishing the card entry activity. This allows the application to perform additional work such as saving the card to a server, and offers the ability to retry by returning CardEntryActivityCommand.ShowError (for instance in case of a network error).
The callback is executed on a background thread.
- Parameters:
handler
- the CardResultBackgroundHandler to be added.
-
-
-
-