LinkRunner

Main entry point for the LinkRunner SDK. This class provides methods to initialize and interact with the LinkRunner service.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun capturePayment(paymentData: CapturePaymentRequest): Result<Unit>

Track a payment event

Link copied to clipboard
fun destroy()

Clean up resources when the SDK is no longer needed

Link copied to clipboard
fun enablePIIHashing(enabled: Boolean = true)

Enable or disable PII hashing

Link copied to clipboard

Get attribution data for the current installation

Link copied to clipboard

Hash a string using SHA-256 algorithm

Link copied to clipboard
suspend fun init(context: Context, token: String, link: String? = null, source: String? = null, secretKey: String? = null, keyId: String? = null, debug: Boolean? = false): Result<BaseResponse>

Initialize dependencies for the SDK

Link copied to clipboard

Check if PII hashing is currently enabled

Link copied to clipboard
suspend fun removePayment(removePayment: RemovePaymentRequest): Result<Unit>

Remove a previously captured payment

Link copied to clipboard
suspend fun setAdditionalData(integrationData: IntegrationData): Result<Unit>

Sends integration data to the server

Link copied to clipboard
suspend fun setPushToken(pushToken: String): Result<Unit>

Update the push notification token for the current user

Link copied to clipboard
suspend fun setUserData(userData: UserDataRequest): Result<Unit>

Set user data for the current session

Link copied to clipboard
suspend fun signup(userData: UserDataRequest, additionalData: Map<String, Any>? = null): Result<BaseResponse>

Track a user signup event

Link copied to clipboard
suspend fun trackEvent(eventName: String, eventData: Map<String, Any>? = null, eventId: String? = null): Result<Unit>

Track a custom event