set Custom Data
Attach a global map of custom key/value pairs to every subsequent bug report.
Replaces (not merges) any previously set custom data — call with the full map you want included. The provided map is defensively copied; later mutations to the caller's map have no effect on stored data.
Safe to call from any thread, at any time after start. Reads happen when the bug report screen is opened.
Example:
BugScreenSDK.setCustomData(mapOf(
"env" to "staging",
"buildType" to "debug",
))Content copied to clipboard
Set a single custom data key/value pair on the global map sent with every subsequent bug report. Overwrites the existing value for key if any; other keys are preserved.
Safe to call from any thread, at any time after start.
Example:
BugScreenSDK.setCustomData("userId", "abc-123")Content copied to clipboard