Пример #1
0
        public void RemoveObservers(AVCaptureSession session)
        {
            if (_addedObservers != true)
            {
                return;
            }

            NSNotificationCenter.DefaultCenter.RemoveObserver(this);
            NSNotificationCenter.DefaultCenter.RemoveObserver(_wasInterruptedNotification);
            NSNotificationCenter.DefaultCenter.RemoveObserver(_interruptionEndedNotification);
            session.RemoveObserver(this, RunningObserverKeyPath, _sessionRunningObserveContext);

            _addedObservers = false;
        }