configureDataUsage method

dynamic configureDataUsage(
  1. Troubleshooting? troubleshooting,
  2. String visitorId,
  3. bool hasConsented,
  4. FlagshipConfig sdkConfig,
)

Implementation

configureDataUsage(Troubleshooting? troubleshooting, String visitorId,
    bool hasConsented, FlagshipConfig sdkConfig) {
  _singleton.sdkConfig = sdkConfig;
  _singleton._troubleshooting = troubleshooting;
  _singleton.visitorId = visitorId;
  _singleton.dataReport = DataReportQueue();
  _singleton.visitorSessionId = FlagshipTools.generateUuidv4().toString();
  _singleton._hasConsented = hasConsented;
  _singleton.evaluateDataUsageTrackingAllocated();
}