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
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.note
MSDK currently does not support Windows
Function Definition
- Unity
- Unreal Engine
void SetUserValue(string k, string v);
static void SetUserValue(const std::string &key, const std::string &value);
Input Parameters
- Unity
- Unreal Engine
| Parameters | Type | Description |
|---|---|---|
| key | string | Key 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. |
| value | string | Value Length limit of 200 bytes |
| Parameters | Type | Description |
|---|---|---|
| Key | std::string | Key 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. |
| Value | std::string | Value Length limit of 200 bytes |
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetCrashService().SetUserValue("key", "value");
GUA_NAMESPACE::GUACrashService::SetUserValue("Key", "Value");