Skip to main content

AutoBindChannel (AutoBindChannel)

AndroidiOSPC

If you are using Unreal Engine, see AutoBindChannel in the Unreal Engine SDK.

This interface supports both LI PASS account linking and third-party channel linking. If the user does not have a LIPASS account, LIPASS creation and link process will be completed first, then the specified Channel will be auto-linked.

Binding scenarios:

  • When channelId is 131 (LIPASS), the permissions and extraJson parameters can be ignored.
  • When channelId is another third-party channel, the permissions and extraJson parameters can refer to the Bind API.
note

This interface only supports mobile and PC Standalone solutions; PC Store and cross-game account association are not supported.

Function definition​

public static void AutoBindChannel(int channelId, string permissions = "", string extraJson = "");

Parameter Description​

ParameterTypeDescription
channelIdintSpecify the login channel.
For more information, see INTLChannel.
permissionsstringPermission list when linking, multiple permissions separated by commas
For example: user_info,inapp_friends
extraJsonstringExtended Field

Observers​

Callback for LI PASS events. The game needs to handle the callback logic.For more information about callback data structures, see LIEventObserver.

Callback LIEventType is AUTO_BIND_CHANNEL_RESULT.

Code sample​

LevelInfinite.AutoBindChannel((int)INTLChannel.Discord);