public class CardEntryManager
Lets the application collect card information and exchange it for a Square card nonce using Square's card entry activity.
| Constructor and Description |
|---|
CardEntryManager()
Lets the application collect card information and exchange it for a Square card nonce using
Square's card entry activity.
|
| Modifier and Type | Method and Description |
|---|---|
CallbackReference |
addCardEntryActivityCallback(CardEntryActivityCallback callback)
Adds a callback to handle the result of the card entry activity.
|
CallbackReference |
addCardEntryActivityCallback(kotlin.jvm.functions.Function1<? super com.squareup.mcomm.CardEntryActivityResult,kotlin.Unit> callback)
Adds a callback to handle the result of the card entry activity.
|
void |
startCardEntryActivity(android.content.Context context)
Starts an activity that lets the application collect card information and exchange it for a
Square card nonce using Square's card entry activity.
|
public CardEntryManager()
Lets the application collect card information and exchange it for a Square card nonce using Square's card entry activity.
public void startCardEntryActivity(android.content.Context context)
Starts an activity that lets the application collect card information and exchange it for a Square card nonce using Square's card entry activity.
Add a interface CardEntryActivityCallback to handle the result of the card entry activity.
context - An activity instance from which to start the card entry activity.interface CardEntryActivityCallbackpublic CallbackReference addCardEntryActivityCallback(CardEntryActivityCallback callback)
Adds a callback to handle the result of the card entry activity.
Call CardEntryManager.addCardEntryActivityCallback from Kotlin instead to be able to pass a lambda for the
interface CardEntryActivityCallback
The callback is executed on the main thread.
callback - the interface CardEntryActivityCallback to be added.CardEntryManager.addCardEntryActivityCallback,
interface CardEntryActivityCallbackpublic CallbackReference addCardEntryActivityCallback(kotlin.jvm.functions.Function1<? super com.squareup.mcomm.CardEntryActivityResult,kotlin.Unit> callback)
Adds a callback to handle the result of the card entry activity.
The callback is executed on the main thread.
callback - the interface CardEntryActivityCallback to be added.CardEntryManager.addCardEntryActivityCallback