-
public class AppstackAttributionSdkRoot 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.
-
-
Field Summary
Fields Modifier and Type Field Description public final static AppstackAttributionSdkINSTANCE
-
Method Summary
Modifier and Type Method Description final static Unitconfigure(Context context, String apiKey, Boolean isDebug, String endpointBaseUrl, LogLevel logLevel, InitListener listener)Initialise the SDK in one line from Application.onCreate.final static UnitsendEvent(EventType event, String name, Map<String, Object> parameters)Track an event (fire-and-forget). final static Unitflush()Instruct the queue to flush immediately. final static UnitshowDebugOverlay(Activity activity)Shows a debug overlay on top of the current activity. final static BooleanisEnabled()final static BooleanisSdkDisabled()final static UnitclearData()final static StringgetAppstackId()Retrieves the unique Appstack ID that was automatically generated during SDK initialization. final static UnitrefreshConfig()Refresh the remote configuration and update dependent components if config has changed. -
-
Method Detail
-
configure
final static Unit configure(Context context, String apiKey, Boolean isDebug, String endpointBaseUrl, LogLevel logLevel, InitListener listener)
Initialise the SDK in one line from
Application.onCreate.
-
sendEvent
final static Unit sendEvent(EventType event, String name, Map<String, Object> parameters)
Track an event (fire-and-forget).
-
showDebugOverlay
final static Unit showDebugOverlay(Activity activity)
Shows a debug overlay on top of the current activity. Requires
debugModeEnabled=truein Config.
-
isSdkDisabled
final static Boolean isSdkDisabled()
-
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.
-
-
-
-