LinkRunner class

Constructors

LinkRunner()
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
packageVersion → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
token ↔ String?
getter/setter pair

Methods

capturePayment({required LRCapturePayment capturePayment}) → Future<void>
enablePIIHashing([bool enabled = true]) → Future<void>
Enable or disable PII (Personally Identifiable Information) hashing When enabled, sensitive user data like name, email, and phone will be hashed using SHA-256 before being sent to the server
getAttributionData() → Future<AttributionData?>
Handle a deeplink for re-engagement attribution. Call this method when the app is opened via a deeplink.
init(String token, [String? secretKey, String? keyId, bool disableIdfa = false, bool debug = false]) → Future<void>
Initialize the LinkRunner SDK
isAaidCollectionDisabled() → Future<bool>
Check if AAID (Google Advertising ID) collection is currently disabled on Android Returns true if AAID collection is disabled, false otherwise
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removePayment({required LRRemovePayment removePayment}) → Future<void>
setAdditionalData({required Map<String, dynamic> integrationData}) → Future<void>
setConsent(LRConsent consent) → Future<void>
Set the Google Ads consent state.
setCustomerUserId(String userId) → Future<void>
setDisableAaidCollection([bool disabled = true]) → Future<void>
Disable AAID (Google Advertising ID) collection on Android When disabled, the SDK will not collect or send the Google Advertising ID (GAID). This is useful for apps targeting children or families to comply with Google Play's Family Policy.
setPushToken(String pushToken) → Future<void>
Set the push notification token for the current device This enables LinkRunner to send push notifications to this device
setUserData({required LRUserData userData}) → Future<void>
Sets user data for this install. Can be called right after init: userData.id is optional, so you can pass only analytics ids (Mixpanel, Amplitude, PostHog, ...) before your app knows the user. Linkrunner then sets its attribution properties on those tools' profiles.
signup({required LRUserData userData, Map<String, dynamic>? data}) → Future<void>
toString() → String
A string representation of this object.
inherited
trackEvent({required String eventName, Map<String, dynamic>? eventData, Object? eventId}) → Future<void>

Operators

operator ==(Object other) → bool
The equality operator.
inherited