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() { MessagingCenter.Unsubscribe <Page, AlertArguments>(this, Page.AlertSignalName); MessagingCenter.Unsubscribe <Page, bool>(this, Page.BusySetSignalName); MessagingCenter.Unsubscribe <Page, ActionSheetArguments>(this, Page.ActionSheetSignalName); _platform?.Dispose(); // call at the end to avoid race conditions with Platform dispose base.OnDestroy(); }
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(); MessagingCenter.Unsubscribe <Page, AlertArguments>(this, Page.AlertSignalName); MessagingCenter.Unsubscribe <Page, bool>(this, Page.BusySetSignalName); MessagingCenter.Unsubscribe <Page, ActionSheetArguments>(this, Page.ActionSheetSignalName); if (_platform != null) { _platform.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(); }