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

import Capacitor
import ScanbotSDKNativeWrapper

extension ScanbotSDKCapacitorPlugin {
  
  @objc func removeLegacyPage(_ call: CAPPluginCall) {
    SBDPageOperations.removePage(pageDict: call.data, resultDelegate: call.delegate)
  }

  @objc func removeAllLegacyPages(_ call: CAPPluginCall) {
    SBDPageOperations.removeAllLegacyPages(resultDelegate: call.delegate)
  }
  
  @objc func setDocumentImageOnLegacyPage(_ call: CAPPluginCall) {
    SBDPageOperations.setDocumentImage(operationConfig: call.data, resultDelegate: call.delegate)
  }
  
  @objc func refreshImageUrisOnLegacyPage(_ call: CAPPluginCall) {
    SBDPageOperations.refreshImageUris(operationConfig: call.data, resultDelegate: call.delegate)
  }
}
