From 7b0612da2de06ff0a432ab7a4d7eb78f372c8e47 Mon Sep 17 00:00:00 2001 From: Zafir Sk Heerah Date: Fri, 21 Jun 2024 07:22:34 +0400 Subject: [PATCH] Refactor --- src/ios/CDVRoomPlan.swift | 4 ++-- www/CDVRoomPlan.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ios/CDVRoomPlan.swift b/src/ios/CDVRoomPlan.swift index b6e4d0d..ddd7cd0 100644 --- a/src/ios/CDVRoomPlan.swift +++ b/src/ios/CDVRoomPlan.swift @@ -35,8 +35,8 @@ class CDVRoomPlan: CDVPlugin, RoomCaptureSessionDelegate, RoomCaptureViewDelegat super.init() } - @objc(openRoomPlan:) - func openRoomPlan(command: CDVInvokedUrlCommand) { + @objc(open:) + func open(command: CDVInvokedUrlCommand) { self.command = command roomCaptureView = RoomCaptureView(frame: viewController.view.bounds) roomCaptureView.captureSession.delegate = self diff --git a/www/CDVRoomPlan.js b/www/CDVRoomPlan.js index 9212cc6..10cee8b 100644 --- a/www/CDVRoomPlan.js +++ b/www/CDVRoomPlan.js @@ -1,8 +1,8 @@ var exec = require("cordova/exec"); -exports.openRoomPlan = function (success, error) { - console.log("CDVRoomPlan.js: openRoomPlan"); - exec(success, error, "CDVRoomPlan", "openRoomPlan", []); +exports.open = function (success, error) { + console.log("CDVRoomPlan.js: open"); + exec(success, error, "CDVRoomPlan", "open", []); }; exports.isSupported = function (success, error) {