TrackingSDK

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun fetchInstallReferrer(callback: (String?) -> Unit)

Fetches the install referrer from the Play Store API (async). Calls the callback with the referrer string or null.

Link copied to clipboard

Expose application context for SDK internals that require it

Link copied to clipboard
Link copied to clipboard

Returns the stored install referrer string, or null if not available.

Link copied to clipboard
Link copied to clipboard
fun initialize(context: Context, projectToken: String, tokenId: String, shortLinkDomain: String, serverUrl: String = "https://api.tryinhouse.co", enableDebugLogging: Boolean = false, callback: (callbackType: String, jsonData: String) -> Unit? = null)

Initialize the SDK with project token and shortlink domain

Link copied to clipboard

Call this method when the app comes to the foreground (onResume) This will check if the app was opened from a shortlink

Link copied to clipboard
fun onNewIntent(intent: Intent?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun trackAppInstallFromReferrer(referrer: String, callback: (String) -> Unit? = null)
Link copied to clipboard
fun trackAppInstallFromShortLink(shortLink: String, referrer: String? = null, callback: (String) -> Unit? = null)
Link copied to clipboard
fun trackAppOpen(shortLink: String? = null, callback: (String) -> Unit? = null)
Link copied to clipboard
fun trackAppOpenFromShortLink(shortLink: String, callback: (String) -> Unit? = null)
Link copied to clipboard
fun trackCustomEvent(eventType: String, shortLink: String? = null, additionalData: Map<String, String>? = null, callback: (String) -> Unit? = null)
Link copied to clipboard
fun trackSessionStart(shortLink: String? = null, callback: (String) -> Unit? = null)
Link copied to clipboard
fun trackSessionStartFromShortLink(shortLink: String, callback: (String) -> Unit? = null)
Link copied to clipboard
fun trackShortLinkClick(shortLink: String, deepLink: String? = null, callback: (String) -> Unit? = null)