Login (Login)
Log in to the game through the specified channel.This function returns authentication status and Player Network account information.
Function Definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool Login(
const EINTLLoginChannel Channel,
const FString Permissions = "",
const FString ExtraJson = "{}");
Input Parameters
| Parameters | Type | Explanation |
|---|---|---|
| Channel | FString | Specify the login channel. For more information, see EINTLLoginChannel. |
| Permissions | FString | Login authorization permission list, multiple permissions are separated by commas. For example user_info,inapp_friends See the explanation of each channel for specific meanings. |
| ExtraJson | FString | Extended fields For more information, seethe relative channel descriptions. |
Callback processing
The callback handler interface is AuthResultObserver.The callback data structure is AuthResult.
The callback ID is kMethodIDAuthLogin.
Code example
// login to Steam
UINTLSDKAPI::Login(EINTLLoginChannel::kChannelSteam);