LoginWithMappedChannel [Player Network SDK Only]
[Player Network SDK Only] Logs in with a mapped channel.
Supported Platform
- 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
| Parameter | Type | Description |
|---|---|---|
| channel | string | The specified channel to log in |
| permission | string | The authorized permissions list during login. Separate the permissions with commas. |
| extraJson | string | The extended field. For more information, see relative channel descriptions. |
| Parameter | Type | Description |
|---|---|---|
| channel | std::string | The specified channel to log in |
| permission | std::string | The authorized permissions list during login. Separate the permissions with commas. |
| 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_LOGIN_WITH_MAPPED_CHANNEL.
The callback event is OnLoginResultNotify.
The callback methodID is kMethodIDAccountLoginWithMappedChannel.
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().LoginWithMappedChannel("Epic");
GUA_NAMESPACE::GUAAccountService::LoginWithMappedChannel("Epic");