Login Using Mapped Channel (LoginWithMappedChannel) [Player Network SDK Only]
[Player Network SDK Only] Log in using a mapped channel.
Supported platforms
- Unity
- Unreal Engine
Supports
Windows platform.Supports
Android, iOS, Windows platform.Function Definition
- Unity
- Unreal Engine
void LoginWithMappedChannel(string channel, string permission, string extraJson);
static void LoginWithMappedChannel(const std::string &channel, const std::string &permission, const std::string &extra_json = "{}");
Input Parameters
- Unity
- Unreal Engine
| Parameters | Type | Description |
|---|---|---|
| channel | string | Required login channel |
| permission | string | List of Authorization Permissions for Login, separated by commas for multiple permissions. |
| extraJson | string | Extended Fields For more information, please refer to the corresponding channel documentation. |
| Parameters | Type | Description |
|---|---|---|
| channel | std::string | Required login channel |
| permission | std::string | List of Authorization Permissions for Login: Multiple permissions are separated by commas. |
| extra_json | std::string | Extended Fields For more information, please refer to the corresponding channel documentation. |
Callback Handling
The callback handling interface is GUALoginResultObservers.The callback data structure is GUALoginResult.
- Unity
- Unreal Engine
The callback event is LoginResultEvents. The callback ID is GUA_ACCOUNT_LOGIN_WITH_MAPPED_CHANNEL.
The callback event is OnLoginResultNotify. The callback ID is kMethodIDAccountLoginWithMappedChannel.
Code example
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().LoginWithMappedChannel("Epic");
GUA_NAMESPACE::GUAAccountService::LoginWithMappedChannel("Epic");