configureDataUsageWithVisitor method

dynamic configureDataUsageWithVisitor(
  1. Troubleshooting? troubleshooting,
  2. Visitor v
)

Implementation

configureDataUsageWithVisitor(Troubleshooting? troubleshooting, Visitor v) {
  _singleton.sdkConfig = v.config;
  _singleton._troubleshooting = troubleshooting;
  _singleton.visitorId = v.visitorId;
  _singleton.dataReport = DataReportQueue();
  _singleton.visitorSessionId = FlagshipTools.generateUuidv4().toString();
  _singleton._hasConsented = v.getConsent();
  _singleton.evaluateDataUsageTrackingAllocated();
}