public interface PXTrackingListener
| Modifier and Type | Method and Description |
|---|---|
void |
onEvent(java.lang.String path,
java.util.Map<java.lang.String,?> data)
This method is called when a new event is launched by the user.
|
void |
onView(java.lang.String path,
java.util.Map<java.lang.String,?> data)
This method is called when a new view is shown to the user.
|
void onView(@NonNull
java.lang.String path,
@NonNull
java.util.Map<java.lang.String,?> data)
path - is the Checkout's path to the view being shown. Paths start with prefixes that are described in
TrackingUtil, under the key VIEW_PATH.
Example: TrackingUtil.VIEW_PATH_EXPRESS_REVIEW_VIEWdata - Map containing information that the view is showing. It also contains information
about errors if the view launched is the Error view.
Keys are dynamically generated by mapping models under the package
com.mercadopago.android.px.tracking.internal.model to the map.
For example com.mercadopago.android.px.tracking.internal.model.ExpressInstallmentsViewvoid onEvent(@NonNull
java.lang.String path,
@NonNull
java.util.Map<java.lang.String,?> data)
path - is the Checkout's path to the event being performed by the user.
Event paths' start with prefixes that are described in
TrackingUtil, under the key EVENT_PATH.
Example: TrackingUtil.EVENT_PATH_ABORT_EXPRESSdata - Map containing information about the event performed.
Keys are dynamically generated by mapping models under the package
com.mercadopago.android.px.tracking.internal.model to the map.
For example com.mercadopago.android.px.tracking.internal.model.ExpressConfirmEvent