AttributionManager constructor

AttributionManager({
  1. required NetworkManagerProtocol networkManager,
  2. required StorageManagerProtocol storageManager,
  3. required FingerprintCollectorProtocol fingerprintCollector,
  4. InstallReferrerReader? readInstallReferrer,
})

Creates an attribution manager

  • networkManager: Network manager for API requests
  • storageManager: Storage manager for caching data
  • fingerprintCollector: Fingerprint collector for device data
  • readInstallReferrer: Reads the Google Play install referrer; null sends none

Implementation

AttributionManager({
  required NetworkManagerProtocol networkManager,
  required StorageManagerProtocol storageManager,
  required FingerprintCollectorProtocol fingerprintCollector,
  InstallReferrerReader? readInstallReferrer,
})  : _networkManager = networkManager,
      _storageManager = storageManager,
      _fingerprintCollector = fingerprintCollector,
      _readInstallReferrer = readInstallReferrer;