Cancel login (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
| Parameters | Type | Explanation |
|---|---|---|
| Channel | EINTLLoginChannel | Specifies the bound channel. For more information, see EINTLLoginChannel. |
| extraJson | string | Extended 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);