Skip to main content

LoginChannelOnly

Windows
If you were looking for the method for use with Unreal Engine, see LoginChannelOnly for Unreal Engine 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

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

Input parameters

ParameterTypeDescription
ChannelstringThe specified channel to log in.
For more information, see INTLChannel.
PermissionsstringList of authorized permissions during login, separated with commas.
Example: user_info, inapp_friends
For permission details, see the relative channel descriptions.
ExtraJsonstringExtended 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 INTLMethodID.INTL_AUTH_LOGIN_CHANNEL_ONLY.

Code sample

INTLAPI.LoginChannelOnly(INTLChannel.Steam);