private void QuitApplication() { var dlgRes = MessageBox.Show("Are you sure you want to close VidyoConnector?", "Exit", MessageBoxButton.YesNo, MessageBoxImage.Question); if (dlgRes == MessageBoxResult.Yes) { Log.Info("Exiting the app... "); if (ConnectionState == ConnectionState.Connected) { LeaveCall(); } // Unregistering to events we want to handle. _connector.UnregisterLocalCameraEventListener(); _connector.UnregisterLocalWindowShareEventListener(); _connector.UnregisterLocalMicrophoneEventListener(); _connector.UnregisterLocalSpeakerEventListener(); _connector.UnregisterParticipantEventListener(); _connector.UnregisterLocalMonitorEventListener(); _connector.Disable(); _connector = null; Log.Info("VidyoConnector disabled."); ConnectorPKG.Uninitialize(); Log.Info("VidyoConnector unitialized."); System.Windows.Application.Current.Shutdown(); } }
public void Cleanup() { _connector.Disable(); _connector = null; // Uninitialize VidyoClient library. // This should be called only once throughout the lifetime of the app. ConnectorPKG.Uninitialize(); }
// The app is terminating void AppWillTerminate(Foundation.NSNotification notification) { Console.WriteLine("Received a notification UIApplication: " + notification); // Deregister from any/all notifications. Foundation.NSNotificationCenter.DefaultCenter.RemoveObserver(this); // Set the VidyoConnector to nil so it is garbage collected vc = null; // Uninitialize VidyoClient library. // This should be called only once throughout the lifetime of the app. ConnectorPKG.Uninitialize(); }
public void Cleanup() { _connector.Disable(); ConnectorPKG.Uninitialize(); }
// The app is terminating protected override void OnDestroy() { vc.Disable(); ConnectorPKG.Uninitialize(); base.OnDestroy(); }