SetUserId
[Player Network SDK & MSDK] Sets the crash reporting user ID.
Supported channels: Firebase, CrashSight
Supported Platform
- 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 SetUserId(string userId);
static void SetUserId(const std::string &user_id);
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description |
---|---|---|
userId | string | User ID |
Parameter | Type | Description |
---|---|---|
user_id | std::string | User ID |
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetCrashService().SetUserId("userId");
GUA_NAMESPACE::GUACrashService::SetUserId("UserId");