Tracking SDK
class TrackingSDK
Functions
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun trackAppInstallFromShortLink(shortLink: String, referrer: String? = null, callback: (String) -> Unit? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun trackShortLinkClick(shortLink: String, deepLink: String? = null, callback: (String) -> Unit? = null)