Get Channel Information API (LoginChannelOnly)
PC
If you are using Unreal Engine, please refer to 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
| Parameters | Type | Explanation |
|---|---|---|
| Channel | string | Channel to log in. For more information, please see INTLChannel. |
| permissions | string | 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 | string | Extended 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);