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
public static void CancelLogin(string channel, string extra_json="");
Parameter Instructions
| Parameters | Type | Explanation |
|---|---|---|
| channel | string | Specifies the bound channel. For more information, see INTLChannel. |
| extraJson | String | Extended 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);