BindWithConfirmCode [MSDK Only]
[MSDK Only] Link MSDK channels based on the confirmation code.
Supported Platform
- 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
Parameter | Type | Description |
---|---|---|
confirmCode | string | Confirmation code |
channelID | int | Channel ID |
extraJson | string | The extended field. For more information, see relative channel descriptions. |
Parameter | Type | Description |
---|---|---|
confirmCode | std::string | Confirmation code |
channelid | int | Channel ID |
extra_json | std::string | The extended field. For more information, see relative channel descriptions. |
Callback Processing
The callback processing API is GUALoginResultObservers. The callback data structure is GUALoginResult.
- Unity
- Unreal Engine
The callback event is LoginResultEvents
.
The callback methodID is GUA_ACCOUNT_BIND_WITH_CONFIRMCODE
.
The callback event is OnLoginResultNotify.
The callback methodID is kMethodIDAccountBindWithConfirmCode
.
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().BindWithConfirmCode("confirmCode", 2);
GUA_NAMESPACE::GUAAccountService::BindWithConfirmCode("confirmCode", 2);