Package 

Object AppstackAttributionSdk


  • 
    public class AppstackAttributionSdk
    
                        

    Root entry-point for the Appstack Attribution SDK.

    The SDK is intentionally thin; all heavy lifting lives in pluggable modules resolved via dependency injection to maximise testability.

    • Method Detail

      • flush

         final static Unit flush()

        Instruct the queue to flush immediately.

      • showDebugOverlay

         final static Unit showDebugOverlay(Activity activity)

        Shows a debug overlay on top of the current activity. Requires debugModeEnabled=true in Config.

      • getAttributionParams

        @JvmOverloads() final static Map<String, String> getAttributionParams(String rawReferrer)

        Parses all query parameters from a raw referrer string and returns them as a Map.

        This method handles URL-encoded referrer strings commonly used in attribution systems and extracts all available query parameters, not just standard UTM parameters.

        Parameters:
        rawReferrer - The raw referrer string to parse (e.g.
      • getAttributionParams

        @JvmOverloads() final static Map<String, String> getAttributionParams()

        Parses all query parameters from a raw referrer string and returns them as a Map.

        This method handles URL-encoded referrer strings commonly used in attribution systems and extracts all available query parameters, not just standard UTM parameters.

      • getAppstackId

         final static String getAppstackId()

        Retrieves the unique Appstack ID that was automatically generated during SDK initialization. This ID is used to identify the device across all SDK operations.

      • refreshConfig

         final static Unit refreshConfig()

        Refresh the remote configuration and update dependent components if config has changed. This is called periodically by ConfigRefreshWorker.