Skip to main content

Get Channel Information API (LoginChannelOnly)

Windows
If you are using Unreal Engine, see LoginChannelOnly for Unreal Engine SDK.

Only Steam and Epic channels are supported.

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

public static void LoginChannelOnly(string channel, string permissions = "", string extraJson = "{}");

Parameters

ParametersTypeExplanation
ChannelstringChannel to log in.
For more information, please see INTLChannel.
PermissionsStringLogin authorization permission list, multiple permissions are separated by commas.
For example user_info,inapp_friends
See the explanation of each channel for specific meanings.
ExtraJsonStringExtended fields
For more information, seethe relative channel descriptions.

Callback processing

The callback handling interface is AuthResultObserver.The callback data structure is AuthResult. After the callback, the data structure represents the third-party login state only, and will not generate/acquire an openid for Player Network SDK services.

Callback ID is INTLMethodID.INTL_AUTH_LOGIN_CHANNEL_ONLY.

Sample

INTLAPI.LoginChannelOnly(INTLChannel.Steam);