static void ProxyStop(IntPtr h) { LogSharp.Debug("ProxyStop"); UrhoPlatformInitializer.Initialized = false; var context = Current.Context; var app = GetApp(h); app.IsClosed = true; app.UnsubscribeFromAppEvents(); app.Stop(); LogSharp.Debug("ProxyStop: Runtime.Cleanup"); Runtime.Cleanup(); LogSharp.Debug("ProxyStop: Releasing context"); #if ANDROID if (context.Refs() > 0) { context.ReleaseRef(); } #endif LogSharp.Debug("ProxyStop: Disposing context"); context.Dispose(); Current = null; Stoped?.Invoke(); LogSharp.Debug("ProxyStop: end"); exitTask?.TrySetResult(true); }
static void ProxyStop(IntPtr h) { isExiting = true; if (CancelActiveActionsOnStop) { Current.ActionManager.CancelActiveActions(); } LogSharp.Debug("ProxyStop"); UrhoPlatformInitializer.Initialized = false; var context = Current.Context; var app = GetApp(h); app.IsClosed = true; app.Stop(); #if ANDROID LogSharp.Debug("ProxyStop: Runtime.Cleanup"); Runtime.Cleanup(false); LogSharp.Debug("ProxyStop: Disposing context"); Current = null; #else LogSharp.Debug("ProxyStop: Runtime.Cleanup"); Runtime.Cleanup(); LogSharp.Debug("ProxyStop: Disposing context"); Current = null; #endif Stopped?.Invoke(); LogSharp.Debug("ProxyStop: end"); exitTask?.TrySetResult(true); }
static void ProxyStop(IntPtr h) { var context = Current.Context; GetApp(h).Stop(); Runtime.Cleanup(); if (context.Refs() > 0) { context.ReleaseRef(); } context.Dispose(); Current = null; }
static void ProxyStop(IntPtr h) { UrhoPlatformInitializer.Initialized = false; var context = Current.Context; GetApp(h).Stop(); Runtime.Cleanup(); if (context.Refs() > 0) { context.ReleaseRef(); } context.Dispose(); Current = null; Stoped?.Invoke(); }
static async void ProxyStop(IntPtr h) { Current.ActionManager.CancelActiveActions(); LogSharp.Debug("ProxyStop"); UrhoPlatformInitializer.Initialized = false; var context = Current.Context; var app = GetApp(h); app.IsClosed = true; app.UnsubscribeFromAppEvents(); app.Stop(); LogSharp.Debug("ProxyStop: Runtime.Cleanup"); Runtime.Cleanup(); LogSharp.Debug("ProxyStop: Disposing context"); context.Dispose(); Current = null; Stoped?.Invoke(); LogSharp.Debug("ProxyStop: end"); exitTask?.TrySetResult(true); }