ATS Mobile SDK Events
Learn more about the events exposed by the ATS Mobile SDK that you can leverage in your own application.
setAtsManagerCallback
Add a delegate to catch events triggered by the SDK. Events listeners allow you to react to different event of interests and error events.
LRAtsManager.setAtsManagerCallback(this)
LRAtsManager.INSTANCE.setAtsManagerCallback(this);
removeAtsManagerCallback
Removes the delegate.
LRAtsManager.removeAtsManagerCallback()
LRAtsManager.INSTANCE.removeAtsManagerCallback();
Events
ATS Mobile SDK events are defined with an LREvent
enum.
Event Name | Description | Callback Result |
---|---|---|
LOADING | Fired when AtsManager starts initialization process. | LREvent.LOADING |
READY | Fired when AtsManager is fully initialized. | LREvent.READY |
DISABLED | Fired when ATSManager is disabled. | LREvent.DISABLED |
RESET | Fired after SDK reset is complete. | LREvent.RESET |
SHOULD_SYNCHRONIZE | Fired when the automatic sync is disabled and bloom filters need to be synchronized with the backend. | LREvent.SHOULD_SYNCHRONIZE |
SYNC_FULL | Fired when bloom filters synchronization is completed. | LREvent.SYNC_FULL |
SYNC_PARTIAL | Fired when the bloom filters synchronization is partially completed. | LREvent.SYNC_PARTIAL |
SYNC_ERROR | Fired when an error has occurred during the bloom filters synchronization. | LREvent.SYNC_ERROR |
BloomFilterSyncStatus
Case | Description |
---|---|
partial | This status is returned when the Bloom filters could only be partially downloaded. |
full | This status is returned when all the Bloom filters are fully downloaded. |
error | This status is returned if, for some reason, synchronization of the Bloom filters has failed (sdkNotReady , noInternet , etc.). |
DealIDStatus
Case | Description |
---|---|
partial | This status is returned if filtering is only done partially with all the Bloom filters. This can happen if at that moment all filters are not yet downloaded. |
full | This status is returned if filtering is fully done on all bloom filters. |
offline | This status is returned if there is no internet connection. |
error | This status is returned if the ATS SDK is not in a ready state when Deal IDs are requested, or if no bloom filters are downloaded. |
Updated about 1 month ago