NexusConfig constructor
const
NexusConfig({
- required String apiKey,
- String baseUrl = 'https://services.inverge.net',
- String? realtimeUrl,
- bool autoTrackSessions = true,
- bool autoCaptureErrors = true,
- bool autoConnectRealtime = false,
- bool manageRealtimeWithLifecycle = true,
- bool flushOnBackground = true,
- Duration flushInterval = const Duration(seconds: 10),
- int maxBatch = 50,
- bool logging = false,
- NexusLogLevel? logLevel,
- NexusLogSink? onLog,
- bool replayEnabled = false,
- Duration replayInterval = const Duration(milliseconds: 1000),
- double replayPixelRatio = 1.0,
- bool replayMaskTextFields = true,
- bool replayCaptureConsole = true,
- bool replayCaptureNetwork = true,
- bool surveysEnabled = false,
- bool surveyAutoShow = true,
- bool inAppEnabled = false,
- bool inAppAutoShow = true,
- bool autoShowOverlay = true,
- bool liveActivityEnabled = false,
- bool voiceEnabled = false,
- bool remoteConfigEnabled = false,
- bool remoteConfigRealtime = false,
- Map<
String, Object?> remoteConfigDefaults = const {}, - bool pushEnabled = false,
- bool pushAutoRequestPermission = true,
- String? pushWebVapidKey,
- bool pushForegroundDisplay = true,
- String pushAndroidChannelId = 'nexus_default',
- String pushAndroidChannelName = 'Notifications',
- String? appVersion,
- 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 {},
});