protected override void OnDestroy() { PopupManager.Unsubscribe(this); Platform?.Dispose(); // call at the end to avoid race conditions with Platform dispose base.OnDestroy(); }
protected override void OnDestroy() { // may never be called base.OnDestroy(); if (_application != null) { _application.PropertyChanged -= AppOnPropertyChanged; } PopupManager.Unsubscribe(this);
protected override void OnDestroy() { if (_application != null) _application.PropertyChanged -= AppOnPropertyChanged; PopupManager.Unsubscribe(this); Platform?.Dispose(); // call at the end to avoid race conditions with Platform dispose base.OnDestroy(); }
protected override void OnDestroy() { // may never be called base.OnDestroy(); PopupManager.Unsubscribe(this); if (_canvas != null) { ((IDisposable)_canvas).Dispose(); } }
protected override void OnDestroy() { PreviousActivityDestroying.Reset(); if (_application != null) { _application.PropertyChanged -= AppOnPropertyChanged; } PopupManager.Unsubscribe(this); _layout.RemoveView(Platform); Platform?.Dispose(); PreviousActivityDestroying.Set(); // call at the end to avoid race conditions with Platform dispose base.OnDestroy(); }
#pragma warning restore 618 void IDisposable.Dispose() { if (_disposed) { return; } _disposed = true; SetPage(null); if (_embedded) { PopupManager.Unsubscribe(_context); } FormsApplicationActivity.BackPressed -= HandleBackPressed; _toolbarTracker.CollectionChanged -= ToolbarTrackerOnCollectionChanged; _toolbarTracker.Target = null; CurrentNavigationPage = null; CurrentMasterDetailPage = null; CurrentTabbedPage = null; }