CheckUniversalLink [MSDK Only]
[MSDK Only] For MSDK V5.11 and later versions, the self-check function is added to help developers troubleshoot during SDK integration. It currently supports WeChat channel in the testing environment. The self-check function is not available in the production environment.
Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS platform.Supports
Android, iOS platform.Function Definition
- Unity
- Unreal Engine
void CheckUniversalLink(string channel, string subChannel = "", string extraJson = "");
static void CheckUniversalLink(const std::string &channel, const std::string &subChannel = "", const std::string &extra = "{}");
Input Parameters
- Unity
- Unreal Engine
| Parameter | Type | Description |
|---|---|---|
| channel | string | Channel name Currently supports WeChat only |
| subChannel | string | Sub-channel name |
| extraJson | string | The extended field |
| Parameter | Type | Description |
|---|---|---|
| channel | std::string | Channel name Currently supports WeChat only |
| subChannel | std::string | Sub-channel name |
| extra | std::string | The extended field |
Callback Processing
The callback processing API is GUABaseResultObservers. The callback data structure is GUABaseResult.
- Unity
- Unreal Engine
The callback event is LoginBaseResultEvents.
The callback methodID is GUA_ACCOUNT_CHECK_UL.
The callback event is OnBaseResultNotify.
The callback methodID is kMethodIDAccountCheckUL.
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().CheckUniversalLink("WeChat");
GUA_NAMESPACE::GUAAccountService::CheckUniversalLink("WeChat");