Skip to main content

CancelLogin

Windows
If you were looking for the method for use with Unreal Engine, see CancelLogin for Unreal Engine SDK.

When the Windows platform uses a browser to log in to Google/Facebook, if the user closes the login screen, the game cannot receive the message of canceling the login. Only when the login times out will the game receive a timeout callback. It is recommended that when the Windows platform uses the system browser to log in to Google/Facebook, wait for the interface to add a button to cancel the login. When the user clicks the button, call the CancelLogin interface of Player Network SDK to cancel the login. Note that this interface only supports Google and Facebook channels now.

Function definition

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

Input parameters

ParameterTypeDescription
channelstringThe specified channel to link.
For more information, see INTLChannel.
extraJsonstringThe extended field.
For more information, see relative channel descriptions.

Observers

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

The callback methodID is INTL_AUTH_CANCEL_LOGIN.

Code sample

INTLAPI.CancelLogin(INTLChannel.Facebook);