Skip to main content

Get Channel Information API (LoginChannelOnly)

Windows
If you are using the Unity engine, see Unity SDK's LoginChannelOnly.

Only supports Steam and Epic channels.

The LoginChannelOnly interface logs into only third-party channels, retrieves third-party channel login state, and directly returns the information to the game without logging into the Player Network SDK's server. It does not generate/retrieve the Player Network SDK service's OpenID.

Function Definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void LoginChannelOnly(
const EINTLLoginChannel Channel,
const FString Permissions = "",
const FString ExtraJson = "{}");

Input Parameters

ParametersTypeExplanation
ChannelFStringSpecify the login channel.
For more information, see EINTLLoginChannel
PermissionsFStringLogin authorization permission list, multiple permissions are separated by commas.
For example user_info,inapp_friends
See the explanation of each channel for specific meanings.
ExtraJsonFStringExtended fields
For more information, seethe relative channel descriptions.

Callback processing

Callback handling interface is AuthResultObserver.The callback data structure is AuthResult. The callback data structure refers to the third-party login state, and does not generate or obtain OpenID for the Player Network SDK service.

The callback ID is kMethodIDAuthLoginChannelOnly.

Code example

// login to Steam
UINTLSDKAPI::LoginChannelOnly(EINTLLoginChannel::kChannelSteam);