-
public class SstThe main entry point for the CHEQ SST SDK.
The
Sstobject is the main entry point for the CHEQ SST SDK. It provides methods for configuring the SDK, tracking events, and accessing the data layer.The Event and included model information is encoded according to the SST Protocol before being sent to SST.
Links
More information about parameters that can be passed to the CHEQ SST service, see Getting Started with Data Collection Pixels
-
-
Method Summary
Modifier and Type Method Description final static Configconfig()Returns the current configuration of the SDK. final static UnitonError(EventHandler<Error> action)Registers a callback to be invoked when an Error is emitted. final static DataLayergetDataLayer()The DataLayer that stores key-value pairs to persistent storage for automatic inclusion in all Sst.trackEvent calls. final static StoragegetStorage()Storage provides read/write access to cookies, local data, and session data for automatic inclusion in all Sst.trackEvent calls. -
-
Method Detail
-
onError
final static Unit onError(EventHandler<Error> action)
Registers a callback to be invoked when an Error is emitted.
Important: This method cannot be called in the main thread as it may block leading to ANRs
- Parameters:
action- The callback to be invoked when an Error is emitted.
-
getDataLayer
final static DataLayer getDataLayer()
The DataLayer that stores key-value pairs to persistent storage for automatic inclusion in all Sst.trackEvent calls.
-
getStorage
final static Storage getStorage()
Storage provides read/write access to cookies, local data, and session data for automatic inclusion in all Sst.trackEvent calls.
-
-
-
-