NexusConfig constructor

const NexusConfig({
  1. required String apiKey,
  2. String baseUrl = 'https://services.inverge.net',
  3. String? realtimeUrl,
  4. bool autoTrackSessions = true,
  5. bool autoCaptureErrors = true,
  6. bool autoConnectRealtime = false,
  7. bool manageRealtimeWithLifecycle = true,
  8. bool flushOnBackground = true,
  9. Duration flushInterval = const Duration(seconds: 10),
  10. int maxBatch = 50,
  11. bool logging = false,
  12. NexusLogLevel? logLevel,
  13. NexusLogSink? onLog,
  14. bool replayEnabled = false,
  15. Duration replayInterval = const Duration(milliseconds: 1000),
  16. double replayPixelRatio = 1.0,
  17. bool replayMaskTextFields = true,
  18. bool replayCaptureConsole = true,
  19. bool replayCaptureNetwork = true,
  20. bool surveysEnabled = false,
  21. bool surveyAutoShow = true,
  22. bool inAppEnabled = false,
  23. bool inAppAutoShow = true,
  24. bool autoShowOverlay = true,
  25. bool liveActivityEnabled = false,
  26. bool voiceEnabled = false,
  27. bool remoteConfigEnabled = false,
  28. bool remoteConfigRealtime = false,
  29. Map<String, Object?> remoteConfigDefaults = const {},
  30. bool pushEnabled = false,
  31. bool pushAutoRequestPermission = true,
  32. String? pushWebVapidKey,
  33. bool pushForegroundDisplay = true,
  34. String pushAndroidChannelId = 'nexus_default',
  35. String pushAndroidChannelName = 'Notifications',
  36. String? appVersion,
  37. Map<String, Object?> defaultProperties = const {},
})

Implementation

const NexusConfig({
  required this.apiKey,
  this.baseUrl = 'https://services.inverge.net',
  this.realtimeUrl,
  this.autoTrackSessions = true,
  this.autoCaptureErrors = true,
  this.autoConnectRealtime = false,
  this.manageRealtimeWithLifecycle = true,
  this.flushOnBackground = true,
  this.flushInterval = const Duration(seconds: 10),
  this.maxBatch = 50,
  this.logging = false,
  this.logLevel,
  this.onLog,
  this.replayEnabled = false,
  this.replayInterval = const Duration(milliseconds: 1000),
  this.replayPixelRatio = 1.0,
  this.replayMaskTextFields = true,
  this.replayCaptureConsole = true,
  this.replayCaptureNetwork = true,
  this.surveysEnabled = false,
  this.surveyAutoShow = true,
  this.inAppEnabled = false,
  this.inAppAutoShow = true,
  this.autoShowOverlay = true,
  this.liveActivityEnabled = false,
  this.voiceEnabled = false,
  this.remoteConfigEnabled = false,
  this.remoteConfigRealtime = false,
  this.remoteConfigDefaults = const {},
  this.pushEnabled = false,
  this.pushAutoRequestPermission = true,
  this.pushWebVapidKey,
  this.pushForegroundDisplay = true,
  this.pushAndroidChannelId = 'nexus_default',
  this.pushAndroidChannelName = 'Notifications',
  this.appVersion,
  this.defaultProperties = const {},
});