TikTok module
- Enum:
AffiseModules.TIKTOK(lib/module/affise_modules.dart:17) - Native key:
"TikTok"(lib/module/affise_modules.dart:55) - Dart accessor:
Affise.module.tikTok→AffiseModuleTikTokApi - Implementation:
lib/module/tiktok/affise_tiktok.dart:8 - API:
lib/module/tiktok/affise_module_tiktok_api.dart:3
Purpose
Section titled “Purpose”README 575-610 — forwards TikTok events to Affise.
Dart API
Section titled “Dart API”void sendEvent(String eventName, Map<String, dynamic> properties, String eventId); // lib/module/tiktok/affise_tiktok.dart:14Future<bool> hasModule(); // :21Platform
Section titled “Platform”Cross-platform.
Install
Section titled “Install”flutter pub add affise_attribution_libflutter pub add affise_attribution_module_tiktokor add the dependency to pubspec.yaml:
dependencies: affise_attribution_lib: ^1.7.16 affise_attribution_module_tiktok: ^1.7.16The package does not expose a Dart API of its own — it only pulls in the native module dependency:
- Android:
com.affise:module-tiktok:1.7.16 - iOS (CocoaPods):
AffiseModule/TikTok1.7.16 - iOS (Swift Package Manager):
AffiseModuleTikTok1.7.16
Module APIs (Affise.module.*, AffiseModules) remain in affise_attribution_lib.
TikTok SDK dependency
Section titled “TikTok SDK dependency”Native setup (alternative)
Section titled “Native setup (alternative)”Instead of the Flutter package you can add the native dependency to the platform project yourself (README #### Native):
- Android:
implementation "com.affise:module-tiktok:$affise_version" - iOS:
pod 'AffiseModule/TikTok', affise_version
ProviderType contributions
Section titled “ProviderType contributions”UNVERIFIED: ProviderType additions — the README does not enumerate.