Skip to main content

SetUserValue

[Player Network SDK & MSDK] Sets key-value pairs and reports them with crash information.

Supported channel: Firebase, CrashSight

Supported Platform

Supports Android, iOS, Windows platform.
note

MSDK currently does not support Windows.

Function Definition

void SetUserValue(string k, string v);

Input Parameters

ParameterTypeDescription
keystringKey
The key must be a regular expression [a-zA-Z[0-9]]+ within 50 bytes. For more information, see CrashSight Documentation - Set Custom Map Parameters.
valuestringValue
The value must be within 200 bytes.

Code Sample

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