Package 

Object Sst


  • 
    public class Sst
    
                        

    The main entry point for the CHEQ SST SDK.

    The Sst object 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 Config config() Returns the current configuration of the SDK.
      final static Unit onError(EventHandler<Error> action) Registers a callback to be invoked when an Error is emitted.
      final static DataLayer getDataLayer() The DataLayer that stores key-value pairs to persistent storage for automatic inclusion in all Sst.trackEvent calls.
      final static Storage getStorage() Storage provides read/write access to cookies, local data, and session data for automatic inclusion in all Sst.trackEvent calls.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • config

         final static Config config()

        Returns the current configuration of the SDK.

      • 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.