-
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 Unitconfigure(Config config, ContextProvider contextProvider)Configures the CHEQ SST SDK with the specified contextProvider and config. final static Configconfig()Returns the current configuration of the SDK. final static UnitonRequest(EventHandler<HttpRequest> action)Registers a callback to be invoked when a HttpRequest is emitted. final static UnitonResponse(EventHandler<HttpResponse> action)Registers a callback to be invoked when a HttpResponse is emitted. 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
-
configure
final static Unit configure(Config config, ContextProvider contextProvider)
Configures the CHEQ SST SDK with the specified contextProvider and config.
This must be called before any other methods in the SDK are used.
- Parameters:
config- The Config object to use for the SDK.contextProvider- The Android ContextProvider to use for the SDK.
-
onRequest
final static Unit onRequest(EventHandler<HttpRequest> action)
Registers a callback to be invoked when a HttpRequest is emitted.
- Parameters:
action- The callback to be invoked when a HttpRequest is emitted.
-
onResponse
final static Unit onResponse(EventHandler<HttpResponse> action)
Registers a callback to be invoked when a HttpResponse is emitted.
- Parameters:
action- The callback to be invoked when a HttpResponse is emitted.
-
onError
final static Unit onError(EventHandler<Error> action)
Registers a callback to be invoked when an Error is emitted.
- 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.
Sst.configure must be called once before methods on this object are called.
-
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.
Sst.configure must be called once before methods on this object are called.
-
-
-
-