public abstract class CheckoutLazyInit
extends java.lang.Object
| Modifier | Constructor and Description | 
|---|---|
protected  | 
CheckoutLazyInit(MercadoPagoCheckout.Builder builder)
CheckoutLazyInit allows you to prefetch  
MercadoPagoCheckout information. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
cancel()  | 
void | 
fail()
Deprecated. 
 
Not for public use.
    This method is expected to be retained only as a
    private method.  Please use  
cancel())} | 
abstract void | 
fail(MercadoPagoCheckout mercadoPagoCheckout)
If prefetch fails this method will be called 
 | 
void | 
fetch(android.content.Context context)
Starts fetch for  
MercadoPagoCheckout | 
abstract void | 
success(MercadoPagoCheckout mercadoPagoCheckout)
If prefetch is success this method will be called and will serve a  
MercadoPagoCheckout instance. | 
protected CheckoutLazyInit(MercadoPagoCheckout.Builder builder)
MercadoPagoCheckout information.
 Using this Lazy Builder you can avoid having a loading after call
 MercadoPagoCheckout.startPayment(Context, int)builder - Checkout builder to prefetchpublic final void fetch(android.content.Context context)
MercadoPagoCheckoutcontext - your app context.@Deprecated public final void fail()
cancel())}public void cancel()
public abstract void fail(@NonNull
                          MercadoPagoCheckout mercadoPagoCheckout)
mercadoPagoCheckout - served, if you start it anyway it will fail or show a loading depending on the cause.public abstract void success(@NonNull
                             MercadoPagoCheckout mercadoPagoCheckout)
MercadoPagoCheckout instance.mercadoPagoCheckout - instance for you start the checkout process.