//
//  ScanbotSDKCapacitorPlugin.swift
//  Plugin
//
//  Copyright © 2024 Scanbot SDK GmbH. All rights reserved.
//

import Capacitor
import ScanbotSDKNativeWrapper

extension ScanbotSDKCapacitorPlugin {
  
  @objc func startTextPatternScanner( _ call: CAPPluginCall){
    guard let parentVC = presentViewControllerOrReject(call) else {
      return
    }
    
    SBDTextRecognition.startScanner(
      parentViewController: parentVC,
      configuration: call.data,
      resultDelegate: call.delegate
    )
  }
}
