Skip to main content

Set Key Data (SetUserValue)

[Player Network SDK & MSDK] Set key-value pairs for critical data to be reported along with crash information.

Supported channels: Firebase, CrashSight

Supported platforms

Supports Android, iOS, Windows platform.
note

MSDK currently does not support Windows

Function Definition

void SetUserValue(string k, string v);

Input Parameters

ParametersTypeDescription
keystringKey
Key values must match the regular expression [a-zA-Z[0-9]]+, with a length limit of 50 bytes.For details, see Bugly official docs - Set custom Map parameters.
valuestringValue
Length limit of 200 bytes

Code Example

UnionAdapterAPI.GetCrashService().SetUserValue("key", "value");