SdkConfig class

SdkConfig pushed by the desktop in welcome and config messages.

Constructors

SdkConfig({required bool captureBodies, required int maxBodyBytes, required int metricsIntervalMs, required bool deviceLogsAvailable, bool captureStreams = false, int maxStreamMessageBytes = 0})
A config with every field given; the SDK reads them with fromJson.
const

Properties

captureBodies → bool
Whether request and response bodies are captured (sizes always are).
final
captureStreams → bool
Whether net.ws / net.sse messages may be sent. Only a config that says true turns them on: an older desktop leaves the field out, which means off even when an earlier config had it on.
final
deviceLogsAvailable → bool
Whether the desktop reads the device's own logs (adb logcat, iOS syslog); print capture in auto mode stays off then, so lines are not shown twice.
final
hashCode → int
The hash code for this object.
no setterinherited
maxBodyBytes → int
Bodies are cut after this many bytes (at most 10 MiB).
final
maxStreamMessageBytes → int
Payload cap of one stream message in bytes (0: sizes only), at most kMaxStreamMessageBytesCeiling.
final
metricsIntervalMs → int
How often metric samples are sent, in milliseconds (at least 100).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
streamMessageCap → int
Payload bytes of one stream message the SDK keeps right now: 0 when bodies are off.
no setter

Methods

copyWith({bool? captureBodies}) → SdkConfig
A copy with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The config as wire JSON.
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Object? json, {SdkConfig fallback = defaults}) → SdkConfig
Tolerant parser: missing/invalid fields fall back to fallback.

Constants

defaults → const SdkConfig
Used until the first welcome arrives (matches DEFAULT_SETTINGS; stream messages stay off until a desktop asks for them).