public final class ReaderSdk
extends java.lang.Object
The entry point for Reader SDK. Manages initialization and provides access to managers for all SDK operations. You must initialize the SDK before attempting any other operation.
Initialize the SDK:
public class MyApplication extends Application {
@Override public void onCreate() {
super.onCreate();
ReaderSdk.initialize(this);
}
}
Modifier and Type | Method and Description |
---|---|
static AuthorizationManager |
authorizationManager()
Returns the
AuthorizationManager singleton for authorizing Reader SDK to collect
payments. |
static CheckoutManager |
checkoutManager()
Returns the
CheckoutManager singleton for collecting payments using Square's checkout
flow. |
static CustomerCardManager |
customerCardManager()
Returns the
CustomerCardManager singleton for tracking card-on-file information about
customers. |
static void |
initialize(android.app.Application application)
Initializes the Square Reader SDK.
|
static ReaderManager |
readerManager()
Returns the
ReaderManager singleton for connecting and managing Square Card Readers. |
public static void initialize(@NonNull android.app.Application application)
Application.onCreate()
method.application
- The Application
instance.@NonNull public static AuthorizationManager authorizationManager()
AuthorizationManager
singleton for authorizing Reader SDK to collect
payments.@NonNull public static ReaderManager readerManager()
ReaderManager
singleton for connecting and managing Square Card Readers.@NonNull public static CheckoutManager checkoutManager()
CheckoutManager
singleton for collecting payments using Square's checkout
flow.@NonNull public static CustomerCardManager customerCardManager()
CustomerCardManager
singleton for tracking card-on-file information about
customers.