ArgosConfig constructor

ArgosConfig({
  1. List<String>? hostWhiteList,
  2. List<ArgosCapability>? apmTypes,
  3. bool enableStorage = false,
  4. ArgosSessionMode sessionMode = ArgosSessionMode.automatic,
  5. ArgosAutomaticSessionPolicy automaticSessionPolicy = const ArgosAutomaticSessionPolicy.process(),
  6. int maxSessions = 5,
  7. int maxPacketRecords = 200,
  8. int resourceMaxRecords = 50,
  9. String? proxyProvider()?,
  10. ArgosStorageAdapter? storageAdapter,
  11. double jankThresholdMultiplier = 1.0,
  12. Duration resourceSampleInterval = const Duration(seconds: 2),
  13. Duration storagePersistInterval = const Duration(seconds: 5),
})

Implementation

ArgosConfig({
  this.hostWhiteList,
  this.apmTypes,
  this.enableStorage = false,
  this.sessionMode = ArgosSessionMode.automatic,
  this.automaticSessionPolicy = const ArgosAutomaticSessionPolicy.process(),
  this.maxSessions = 5,
  this.maxPacketRecords = 200,
  this.resourceMaxRecords = 50,
  this.proxyProvider,
  this.storageAdapter,
  this.jankThresholdMultiplier = 1.0,
  this.resourceSampleInterval = const Duration(seconds: 2),
  this.storagePersistInterval = const Duration(seconds: 5),
})  : assert(maxSessions > 0),
      assert(maxPacketRecords > 0),
      assert(resourceMaxRecords > 0),
      assert(jankThresholdMultiplier > 0),
      assert(!resourceSampleInterval.isNegative),
      assert(!storagePersistInterval.isNegative);