AppDNAOptions class
Configuration options for the AppDNA SDK.
Constructors
- AppDNAOptions({int? flushInterval, int? batchSize, int? configTTL, AppDNALogLevel? logLevel, AppDNABillingProvider? billingProvider, int? notificationIcon, String? framework, bool? requireConsent, int? vetoTimeout})
-
const
Properties
- batchSize → int?
-
A cap on the events one upload sends and the queue length that triggers a flush; the batch is sized
by the network (100 on Wi-Fi or wired, 50 on cellular, 20 on an expensive / metered connection) and
never exceeds this. When null, the server's value from the bootstrap request (if positive) is the
cap, else there is none. Below 1 is ignored (as if not set). Sent to native only when set.
final
- billingProvider → AppDNABillingProvider?
-
Billing provider for paywall purchases. Default: storeKit2 (Google Play Billing on Android).
final
- configTTL → int?
-
Remote config cache TTL in seconds. When null, the server's value from the bootstrap request (if
positive), else 3600 (1 hour). Sent to native only when set.
final
- flushInterval → int?
-
Automatic flush interval in seconds. When null, the server's value from the SDK's bootstrap request
(if positive), else 30. Sent to native only when set.
final
- framework → String?
-
ignored. The bridge injects
flutterunconditionally.final - hashCode → int
-
The hash code for this object.
no setterinherited
- logLevel → AppDNALogLevel?
-
Log verbosity. Default: warning.
final
- notificationIcon → int?
-
Notification small-icon drawable resource id used for AppDNA push
notifications (Android only; iOS ignores it).
0/unset falls back to manifest meta-data then the app icon.final - requireConsent → bool?
-
When true, analytics stay OFF until
setConsent(true), and no event (includingsdk_initialized) is emitted before that decision. Default false: analytics are opt-out. Either way the decision now persists across a cold start.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- vetoTimeout → int?
-
Seconds any host hook on this bridge (
onBeforeStepAdvance,onBeforeStepRender,onElementInteraction, the vetoes, …) may take before the SDK applies the hook's default. Default 5; a value of 0 or less means the default. Sign-in actions inonBeforeStepAdvancewait at least 120 s whatever this is (max(vetoTimeout, 120)), and anonElementInteractionrefresh at least 8 s. Timeouts are counted indiagnose().final
Methods
-
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