Skip to main content

LoginChannelOnly

Windows
If you were looking for the method for use with Unity, see LoginChannelOnly for Unity SDK.

Only Steam and Epic channels are supported.

The LoginChannelOnly interface only logs in to a third-party channel, gets the login state of the third-party channel, then returns the information directly to the game. It does not log in to Player Network SDK's server and does not generate/get the OpenID of the Player Network SDK service.

Function definition

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

Input parameters

ParameterTypeDescription
ChannelFStringThe specified channel to log in.
For more information, see EINTLLoginChannel.
PermissionsFStringList of authorized permissions during login, separated with commas.
Example: user_info,inapp_friends
For permission details, see the relative channel descriptions.
ExtraJsonFStringExtended JSON field.
For more information, see the relative channel descriptions.

Observers

The callback processing interface is AuthResultObserver. The callback data structure is AuthResult,which after the callback, does not generate/get the openid of the Player Network SDK service after returning the login state of the third party .

The callback methodID is kMethodIDAuthLoginChannelOnly.

Code sample

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