Skip to main content

Cancel login (CancelLogin)

Windows
If you are using the Unity engine, see Unity 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

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void CancelLogin(const FString &channel, const FString &extra_json="");

Parameter Instructions

ParametersTypeExplanation
ChannelEINTLLoginChannelSpecifies the bound channel.
For more information, see EINTLLoginChannel.
extraJsonstringExtended field
For more information, please see relative channel description.

Observers

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

The callback ID is kMethodIDAuthCancelLogin.

Code example

UINTLSDKAPI::CancelLogin(EINTLLoginChannel::kChannelFacebook);