RelevaConfig class

Constructors

RelevaConfig({bool enableTracking = true, bool enableScreenTracking = true, bool enableInAppMessaging = true, bool enablePushNotifications = true, bool enableAnalytics = true, bool enableInbox = true, bool enableRequestLogging = true, Duration requestTimeout = const Duration(seconds: 30), int maxRetryAttempts = 3, Duration transportRetryDelay = const Duration(milliseconds: 1000), Duration serverErrorRetryDelay = const Duration(milliseconds: 2000)})
const
RelevaConfig.full()
Configuration for full functionality (default)
const
RelevaConfig.messagingOnly()
Configuration for tracking disabled (only in-app messaging)
const
RelevaConfig.pushOnly()
Configuration for push notifications only
const
RelevaConfig.trackingOnly()
Configuration for analytics only (no messaging)
const

Properties

enableAnalytics → bool
final
enableInAppMessaging → bool
final
enableInbox → bool
final
enablePushNotifications → bool
final
enableRequestLogging → bool
Log one line per HTTP request (verb, path, status, duration) via debugPrint. Never includes the request body or the query string.
final
enableScreenTracking → bool
final
enableTracking → bool
final
hashCode → int
The hash code for this object.
no setterinherited
maxRetryAttempts → int
How many times a failed request is retried on top of the first attempt, so the default of 3 means four attempts in total. Only a transport failure that never got a response at all (not the timeout — see requestTimeout) or a 5xx response is retried.
final
requestTimeout → Duration
How long a single HTTP attempt may go without progress before the SDK stops waiting for it — a per-read clock, reset on every byte received, applied to the response body as well as the status. Defaults to 30s, the value sdk-kotlin uses for both its connect and its read timeout. Not retried: the connection may have been accepted and the request may already be sitting with the server, so a timeout is the same double-count hazard as a body-read failure — the call ends here, at this one deadline, rather than at this deadline times maxRetryAttempts.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serverErrorRetryDelay → Duration
Delay before retrying a 5xx response. Defaults to 2000ms, sdk-kotlin's SERVER_ERROR_RETRY_DELAY_MS — deliberately longer than transportRetryDelay there, and kept so here.
final
transportRetryDelay → Duration
Delay before retrying a transport failure. Defaults to 1000ms, sdk-kotlin's TRANSPORT_RETRY_DELAY_MS.
final

Methods

copyWith({bool? enableTracking, bool? enableScreenTracking, bool? enableInAppMessaging, bool? enablePushNotifications, bool? enableAnalytics, bool? enableInbox, bool? enableRequestLogging, Duration? requestTimeout, int? maxRetryAttempts, Duration? transportRetryDelay, Duration? serverErrorRetryDelay}) → RelevaConfig
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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