ObslyConfig class

Obsly SDK Configuration A single configuration that combines local and remote settings

Available extensions

Constructors

ObslyConfig({bool? enableScreenshotOnUi, List<String>? requestBlacklist, List<RequestBodyConfig>? requestBodyWhitelist, List<RequestHeadersConfig>? requestHeadersWhitelist, TagsBlacklistConfig? tagsBlacklist, RageClickConfig? rageClick, AnonymizationConfig? anonymization, bool? enableCrashes, bool? enableLifeCycleLog, bool? enableRequestLog, bool? enableTagger, bool? enablePerformance, bool? enableMetrics, bool? enableUI, bool? automaticViewDetection, int? sessionMaxLengthMins, int? bufferSize, bool? captureConsole, bool? captureBodyOnError, int? messengerInterval, bool? enableDebugTools, bool? enableRules, ObslyTools? obslyTools, RateLimitsConfig? rateLimits, bool? enableRateLimit})
const
ObslyConfig.fromMap(Map<String, dynamic> map)
Creates from Map (for deserialization) IMPORTANT: Null values indicate that the server did not specify that parameter This allows the merge to maintain priority Remote > Local > Default
factory
ObslyConfig.withDefaults({bool? enableScreenshotOnUi, List<String>? requestBlacklist, List<RequestBodyConfig>? requestBodyWhitelist, List<RequestHeadersConfig>? requestHeadersWhitelist, TagsBlacklistConfig? tagsBlacklist, RageClickConfig? rageClick, AnonymizationConfig? anonymization, bool? enableCrashes, bool? enableLifeCycleLog, bool? enableRequestLog, bool? enableTagger, bool? enablePerformance, bool? enableMetrics, bool? enableUI, bool? automaticViewDetection, int? sessionMaxLengthMins, int? bufferSize, bool? captureConsole, bool? captureBodyOnError, int? messengerInterval, bool? enableDebugTools, bool? enableRules, ObslyTools? obslyTools, RateLimitsConfig? rateLimits, bool? enableRateLimit})
Creates a config with all default values applied This ensures consistent defaults throughout the SDK
factory

Properties

anonymization AnonymizationConfig?
final
automaticViewDetection bool?
Enable automatic view detection on navigation
final
bufferSize int?
final
captureBodyOnError bool?
final
captureConsole bool?
final
enableCrashes bool?
final
enableDebugTools bool?
final
enableLifeCycleLog bool?
final
enableMetrics bool?
final
enablePerformance bool?
final
enableRateLimit bool?
Enable rate limiting for all events When true, rate limiting is active with configured limits When false or null, rate limiting is disabled
final
enableRequestLog bool?
final
enableRules bool?
final
enableScreenshotOnUi bool?
final
enableTagger bool?
final
enableUI bool?
final
hashCode int
The hash code for this object.
no setterinherited
messengerInterval int?
final
obslyTools ObslyTools?
Configuración de herramientas Obsly (URLs remotas) ⚠️ IMPORTANTE: Este campo es SOLO para configuración remota. NUNCA debe ser editable por el usuario en interfaces de configuración. Los URLs se establecen únicamente desde el servidor.
final
rageClick RageClickConfig?
final
rateLimits RateLimitsConfig?
final
requestBlacklist List<String>?
final
requestBodyWhitelist List<RequestBodyConfig>?
final
requestHeadersWhitelist List<RequestHeadersConfig>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionMaxLengthMins int?
final
tagsBlacklist TagsBlacklistConfig?
final

Methods

copyWith({bool? enableScreenshotOnUi, List<String>? requestBlacklist, List<RequestBodyConfig>? requestBodyWhitelist, List<RequestHeadersConfig>? requestHeadersWhitelist, TagsBlacklistConfig? tagsBlacklist, RageClickConfig? rageClick, AnonymizationConfig? anonymization, bool? enableCrashes, bool? enableLifeCycleLog, bool? enableRequestLog, bool? enableTagger, bool? enablePerformance, bool? enableMetrics, bool? enableUI, bool? automaticViewDetection, int? sessionMaxLengthMins, int? bufferSize, bool? captureConsole, bool? captureBodyOnError, int? messengerInterval, bool? enableDebugTools, bool? enableRules, ObslyTools? obslyTools, RateLimitsConfig? rateLimits, bool? enableRateLimit}) ObslyConfig
Create a copy with updated values
copyWith({bool? enableScreenshotOnUi, List<String>? requestBlacklist, List<RequestBodyConfig>? requestBodyWhitelist, List<RequestHeadersConfig>? requestHeadersWhitelist, TagsBlacklistConfig? tagsBlacklist, RageClickConfig? rageClick, bool? enableCrashes, bool? enableLifeCycleLog, bool? enableRequestLog, bool? enableTagger, bool? enablePerformance, bool? enableMetrics, bool? enableUI, bool? automaticViewDetection, int? sessionMaxLengthMins, int? bufferSize, bool? captureConsole, bool? captureBodyOnError, int? messengerInterval, bool? enableDebugTools, bool? enableRules, ObslyTools? obslyTools, RateLimitsConfig? rateLimits, bool? enableRateLimit}) ObslyConfig

Available on ObslyConfig, provided by the ObslyConfigCopyWith extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts to Map for serialization
toString() String
A string representation of this object.
inherited
validate() ObslyConfig
Validates numeric ranges and applies restrictions

Operators

operator ==(Object other) bool
The equality operator.
inherited