public LogoutConfigDTO(LogoutOptions opts) { Enabled = opts.Enabled; if (Enabled) { URI = opts.URI.ToString(); } }
public void Set(LogoutOptions other) { if (other != null) { m_ApiVersion = AuthInterface.LogoutApiLatest; LocalUserId = other.LocalUserId; } }
/// <summary> /// Signs the player out of the online service. /// </summary> /// <param name="options">structure containing information about which account to log out.</param> /// <param name="clientData">arbitrary data that is passed back to you in the CompletionDelegate</param> /// <param name="completionDelegate">a callback that is fired when the logout operation completes, either successfully or in error</param> public void Logout(LogoutOptions options, object clientData, OnLogoutCallback completionDelegate) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <LogoutOptionsInternal, LogoutOptions>(ref optionsAddress, options); var clientDataAddress = System.IntPtr.Zero; var completionDelegateInternal = new OnLogoutCallbackInternal(OnLogoutCallbackInternalImplementation); Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal); EOS_Auth_Logout(InnerHandle, optionsAddress, clientDataAddress, completionDelegateInternal); Helper.TryMarshalDispose(ref optionsAddress); }
/// <summary> /// Shutdown epic services. /// </summary> public void OnDestroy() { if (_enableDebugLogs) { DebugLogger.RegularDebugLog("[EpicManager] - Releasing epic resources and shutting down epic services."); } if (Application.isEditor) { LogoutOptions logoutOptions = new LogoutOptions { LocalUserId = AccountId.EpicAccountId }; // Callback might not be called since we call Logout in OnDestroy() AuthInterface.Logout(logoutOptions, null, OnAuthInterfaceLogout); } else { Platform.Release(); Platform = null; PlatformInterface.Shutdown(); } }