tolinku library

Tolinku SDK for deep linking, analytics, referrals, and in-app messages.

Usage:

import 'package:tolinku/tolinku.dart';

Tolinku.configure(apiKey: 'tolk_pub_...');
await Tolinku.instance.track('custom.signup');

For lifecycle handling, call Tolinku.flush when the app goes to background. Implement WidgetsBindingObserver and call Tolinku.instance.flush() in didChangeAppLifecycleState when the state is AppLifecycleState.paused.

Classes

Analytics
Provides analytics event tracking via the Tolinku API.
ClaimRewardResponse
Response from claiming a reward.
CompletedReferral
The nested referral object returned from the complete endpoint.
CompleteReferralResponse
Response from completing a referral; wraps the nested referral object.
CreateReferralResponse
Response from creating a referral.
Deferred
Provides deferred deep link claiming via the Tolinku API.
Represents a deferred deep link returned when claiming.
Ecommerce
Ecommerce event tracking: purchases, carts, products, revenue.
LeaderboardEntry
A single entry on the referral leaderboard.
Messages
Provides in-app message fetching and display via the Tolinku API.
MilestoneReferral
The nested referral object returned from the milestone endpoint.
MilestoneResponse
Response from updating a milestone; wraps the nested referral object.
ReferralDetails
Details of an existing referral, returned by the GET endpoint.
Referrals
Provides referral management methods via the Tolinku API.
Tolinku
The main entry point for the Tolinku SDK.
TolinkuItem
A product item for ecommerce event tracking.
TolinkuMessage
Represents an in-app message fetched from the API.
TolinkuMessagePresenter
Handles rendering and dismissal tracking for in-app messages.

Constants

tolinkuSdkVersion → const String
SDK version constant.

Properties

isTolinkuDebugMode bool
Returns true if debug mode is currently enabled.
no setter

Functions

setTolinkuDebugMode(bool enabled) → void
Enables or disables debug logging for the Tolinku SDK.

Exceptions / Errors

TolinkuCancelledException
Exception thrown when a request is attempted after the client has been disposed or when an in-flight request is cancelled.
TolinkuException
Exception thrown by the Tolinku SDK when an API call fails or the SDK is used incorrectly.