DebugSnapshot class
A snapshot of the SDK's internal diagnostic state, for audit/debug tooling. Every field reflects what the native SDK itself is actually using — not what the host app last told it — so this can surface native-side bugs (e.g. a config fetch/parse issue) a host app would otherwise have no visibility into.
Constructors
-
DebugSnapshot({required bool auditModeEnabled, ConfigFetchStatus? configFetchStatus, String? rawConfigJson, required List<
String> activeSdks, required ConsentInfo consentSnapshot, String? testDeviceId})
Properties
-
activeSdks
↔ List<
String> -
Header-bidding SDKs (e.g. Prebid, InMobi, Meta) that successfully initialized.
getter/setter pair
- auditModeEnabled ↔ bool
-
getter/setter pair
- configFetchStatus ↔ ConfigFetchStatus?
-
getter/setter pair
- consentSnapshot ↔ ConsentInfo
-
The consent info the SDK is currently using for ad requests.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- rawConfigJson ↔ String?
-
The raw
app-config.jsonbody of the config currently in effect, exactly as received (pre any platform-specific filtering), pretty-printing left to the caller.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- testDeviceId ↔ String?
-
This device's Google Mobile Ads test-device ID, if one has been registered via
AdvertisingHostApi.setTestDeviceIds. Null until then — Google's SDK only reveals a
device's test-device ID as a byproduct of an ad request it already served, so this can't be
discovered proactively; see AdvertisingHostApi.setTestDeviceIds.
getter/setter pair
Methods
-
encode(
) → Object -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
decode(
Object result) → DebugSnapshot