Skip to main content

Cancel login (CancelLogin)

Windows
If you are using Unreal Engine, see Unreal Engine SDK's CancelLogin.

When using a browser to log into Google/Facebook on the Windows platform, if the user closes the login interface, the game cannot receive the canceled login message; only a timeout callback will be received when login times out.It is recommended that when using the system browser to log into Google/Facebook on Windows platforms, the login interface should include a cancel login button. When the user clicks this button, the Player Network SDK’s CancelLogin interface is called to cancel login.Note that this interface currently only supports Google and Facebook channels.

Function Definition

public static void CancelLogin(string channel, string extra_json="");

Parameter Instructions

ParametersTypeExplanation
channelstringSpecifies the bound channel.
For more information, see INTLChannel.
extraJsonStringExtended field
For more information, please see relative channel description.

Observers

The callback interface is AuthResultObserver.The callback data structure is AuthResult.

The callback ID is INTL_AUTH_CANCEL_LOGIN.

Code example

INTLAPI.CancelLogin(INTLChannel.Facebook);