KochavaTracker class

Kochava Tracker SDK.

Properties

getAttribution Future<String>
Returns the attribution results as stringified json or an empty string if not available.
no setter
getDeviceId Future<String>
Returns the unique device id string set by Kochava or an empty string if the SDK is not started.
no setter
getSleep Future<bool>
Returns the sleep state of the SDK.
no setter
getVersion Future<String>
Retrieves the SDK version in the following format "AndroidTracker x.y.z (Flutter a.b.c)" or "iOSTracker x.y.z (Flutter a.b.c)".
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPushToken(String token) → void
Adds a new push token.
configure(Map<String, dynamic> input) → void
Configures and starts the SDK.
enableAppTrackingTransparencyAutoRequest() → void
(iOS) Request App Tracking Transparency Authorization.
executeAdvancedInstruction(String key, String value) → void
Use only if directed to by your Client Success Manager.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
Process an enhanced deeplink using the default 10 second timeout.
processDeeplinkWithOverrideTimeout(String? path, double timeout, KochavaTrackerDeeplinkCallback deeplinkCallback) → void
Process an enhanced deeplink using the specified override timeout in seconds.
removePushToken(String token) → void
Removes an existing Push Token.
Sends an event containing a deeplink uri and optional source application.
sendEventAppleAppStoreReceipt(String name, Map<String, dynamic> info, String appStoreReceiptBase64EncodedString) → void
(iOS Only) Send an event using an event name, event data, and Apple Store receipt.
sendEventGooglePlayReceipt(String name, Map<String, dynamic> info, String receiptData, String receiptDataSignature) → void
(Android Only) Send an event using an event name, event data, and Google Play Store receipt.
sendEventMapObject(String name, [Map<String, dynamic>? info]) → void
Sends an event using an event name and event data.
sendEventString(String name, [String? info]) → void
Sends an event using an event name and optional event data.
setAppLimitAdTracking(bool appLimitAdTracking) → void
Sets whether advertising identifier tracking should be limited.
setAttributionListener(KochavaTrackerAttributionCallback? attributionCallback) → void
Sets a listener for the Attribution callback event. Setting to null will remove an existing listener.
Sets an Identity Link object containing string key value pairs.
setSleep(bool sleep) → void
Sets the sleep state of the SDK.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance KochavaTracker
Returns the singleton instance of the KochavaTracker.
no setter

Constants

EVENT_TYPE_ACHIEVEMENT_STRING_KEY → const String
EVENT_TYPE_AD_CLICK_STRING_KEY → const String
EVENT_TYPE_AD_VIEW_STRING_KEY → const String
EVENT_TYPE_ADD_TO_CART_STRING_KEY → const String
EVENT_TYPE_ADD_TO_WISH_LIST_STRING_KEY → const String
EVENT_TYPE_CHECKOUT_START_STRING_KEY → const String
EVENT_TYPE_LEVEL_COMPLETE_STRING_KEY → const String
EVENT_TYPE_PURCHASE_STRING_KEY → const String
EVENT_TYPE_PUSH_OPENED_STRING_KEY → const String
EVENT_TYPE_PUSH_RECEIVED_STRING_KEY → const String
EVENT_TYPE_RATING_STRING_KEY → const String
EVENT_TYPE_REGISTRATION_COMPLETE_STRING_KEY → const String
EVENT_TYPE_SEARCH_STRING_KEY → const String
EVENT_TYPE_START_TRIAL_STRING_KEY → const String
EVENT_TYPE_SUBSCRIBE_STRING_KEY → const String
EVENT_TYPE_TUTORIAL_COMPLETE_STRING_KEY → const String
EVENT_TYPE_VIEW_STRING_KEY → const String
LOG_LEVEL_ENUM_DEBUG_VALUE → const String
LOG_LEVEL_ENUM_ERROR_VALUE → const String
LOG_LEVEL_ENUM_INFO_VALUE → const String
LOG_LEVEL_ENUM_NONE_VALUE → const String
LOG_LEVEL_ENUM_TRACE_VALUE → const String
LOG_LEVEL_ENUM_WARN_VALUE → const String
PARAM_ANDROID_APP_GUID_STRING_KEY → const String
PARAM_APP_LIMIT_AD_TRACKING_BOOL_KEY → const String
PARAM_APP_TRACKING_TRANSPARENCY_AUTO_REQUEST_BOOL_KEY → const String
PARAM_APP_TRACKING_TRANSPARENCY_ENABLED_BOOL_KEY → const String
PARAM_APP_TRACKING_TRANSPARENCY_WAIT_TIME_DOUBLE_KEY → const String
PARAM_CONTAINER_APP_GROUP_IDENTIFIER_STRING_KEY → const String
PARAM_CUSTOM_MAP_OBJECT_KEY → const String
PARAM_INSTANT_APP_GUID_STRING_KEY → const String
PARAM_IOS_APP_GUID_STRING_KEY → const String
PARAM_LOG_LEVEL_ENUM_KEY → const String
PARAM_PARTNER_NAME_STRING_KEY → const String
PARAM_RETRIEVE_ATTRIBUTION_BOOL_KEY → const String
PARAM_SLEEP_BOOL_KEY → const String