Verification code binding [MSDK only]
[MSDK only] Bind the MSDK channel using ConfirmCode.
Supported platforms
- Unity
- Unreal Engine
Supports
Android, iOS platform.Supports
Android, iOS platform.Function Definition
- Unity
- Unreal Engine
void BindWithConfirmCode(string confirmCode, int channelID, string extraJson);
static void BindWithConfirmCode(const std::string &confirmCode, int channelid, const std::string &extra_json = "{}");
Input Parameters
- Unity
- Unreal Engine
| Parameters | Type | Description |
|---|---|---|
| confirmCode | string | Verification Code |
| channelID | int | Channel ID |
| extraJson | string | Extended Fields For more information, refer to the corresponding channel documentation. |
| Parameters | Type | Description |
|---|---|---|
| confirmCode | std::string | Verification code |
| channelid | int | Channel ID |
| extra_json | std::string | Extended Fields For more information, refer to the corresponding channel documentation. |
Callback Handling
The callback processing interface is GUALoginResultObservers.The callback data structure is GUALoginResult.
- Unity
- Unreal Engine
The callback event is LoginResultEvents. Callback ID is GUA_ACCOUNT_BIND_WITH_CONFIRMCODE.
The callback event is OnLoginResultNotify. Callback ID is kMethodIDAccountBindWithConfirmCode.
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().BindWithConfirmCode("confirmCode", 2);
GUA_NAMESPACE::GUAAccountService::BindWithConfirmCode("confirmCode", 2);