INNER CODE UNIT · Swift

viewDidDisappear

AmolGangadhare/flutter_barcode_scanner · ios/Classes/SwiftFlutterBarcodeScannerPlugin.swift:243

    override public func viewDidDisappear(_ animated: Bool){
        // Stop video capture
        sessionQueue.async {
            self.captureSession.stopRunning()
        }
    }
    
    // Init UI components needed
    func initUIComponents(){
        if isOrientationPortrait {
            screenHeight = (CGFloat)((SwiftFlutterBarcodeScannerPlugin.scanMode == ScanMode.QR.index) ? (screenSize.width * 0.8) : (screenSize.width * 0.5))
            
        } else {
            screenHeight = (CGFloat)((SwiftFlutterBarcodeScannerPlugin.scanMode == ScanMode.QR.index) ? (screenSize.height * 0.6) : (screenSize.height * 0.5))
        }
        
        
        self.initBarcodeComponents()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…