public override void ViewDidDisappear(bool animated)
        {
            base.ViewDidDisappear(animated);

            //remove identification view
            idView.RemoveFromSuperview();
            idView.Dispose();
            idView = null;

            //we have to erase the scan view so that there are no dependencies for the viewcontroller left.
            anylineMrzView.RemoveFromSuperview();
            anylineMrzView.Dispose();
            anylineMrzView = null;

            base.Dispose();
        }
コード例 #2
0
        new void Dispose()
        {
            //un-register any event handlers here, if you have any

            //remove identification view
            _idView?.RemoveFromSuperview();
            _idView?.Dispose();
            _idView = null;

            //we have to erase the scan view so that there are no dependencies for the viewcontroller left.
            _anylineMrzView?.RemoveFromSuperview();
            _anylineMrzView?.Dispose();
            _anylineMrzView = null;

            GC.Collect(GC.MaxGeneration);

            base.Dispose();
        }