From ea0b1e8e5f43c5fd0a7d479e25ede3b8cbea464a Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期一, 02 十二月 2024 17:17:19 +0800
Subject: [PATCH] tcp;可视对讲;

---
 HDL-ON_Android/Scan.cs |   76 --------------------------------------
 1 files changed, 0 insertions(+), 76 deletions(-)

diff --git a/HDL-ON_Android/Scan.cs b/HDL-ON_Android/Scan.cs
index 5748cf2..8b1d2d9 100644
--- a/HDL-ON_Android/Scan.cs
+++ b/HDL-ON_Android/Scan.cs
@@ -36,15 +36,6 @@
         public void OpenScan(Action<string> action)
         {
             resultAction = action;
-            //string cancel = "鍙栨秷";
-            //string flashText = "";
-            //string titleText = "浜岀淮鐮佹壂鎻�";
-            //if (Language.CurrentLanguage != "Chinese")
-            //{
-            //    cancel = "Cancel";
-            //    flashText = "";
-            //    titleText = "Scan";
-            //}
 
             ((BaseActivity)Shared.Application.Activity).SetCamera(async (obj) =>
             {
@@ -58,37 +49,7 @@
 
                         HDL_ON_Android.ScanActivity.InitDdd(this);
 
-                        //MobileBarcodeScanner.Initialize(Shared.Application.Activity.Application);
-                        //var mZXingCustomScanView = new ZXingCustomScanView(Shared.Application.Activity.Application);
-                        //mZXingCustomScanView.cancelTextView.Text = cancel;
-                        //mZXingCustomScanView.flashTextView.Text = flashText;
-                        //mZXingCustomScanView.titleTextView.Text = titleText;
-                        //mZXingCustomScanView.SetMinimumWidth( 1800);
-                        //var bOn = false;
-                        //scanner = new ZXing.Mobile.MobileBarcodeScanner()
-                        //{
-                        //    UseCustomOverlay = true,
-                        //    CustomOverlay = mZXingCustomScanView
-                        //};
-                        ////scanner.CustomOverlay.width
-                        //mZXingCustomScanView.OnCancel += () =>
-                        //{
-
-                        //    scanner?.Cancel();
-                        //};
-
-                        //mZXingCustomScanView.OnTorch += () =>
-                        //{
-                        //    bOn = !bOn;
-                        //    scanner?.Torch(bOn);
-                        //};
                     }
-
-                    //var result = await scanner.Scan();
-                    //if (result != null)
-                    //    action?.Invoke(result.Text);
-                    //else
-                    //    action?.Invoke(null);
                 }
                 else
                 {
@@ -144,43 +105,6 @@
                 return stream.ToArray();
             }
         }
-
-        //public static void OpenScan1(Action<string> action)
-        //{
-        //    (Shared.Application.Activity as BaseActivity).SetCamera((obj) => {
-        //        if (obj)
-        //        {
-        //            var scanner = new MobileBarcodeScanner { };
-        //            // ZXing  
-        //            scanner.UseCustomOverlay = false;
-        //            // 搴曢儴涓や釜鎸夐挳鏂囧瓧  
-        //            scanner.FlashButtonText = "";//"璇嗗埆";
-        //            scanner.CancelButtonText = Language.CurrentLanguage == "Chinese" ? "鍙栨秷" : "Cancel";
-
-        //            // 鏂规涓婏紝涓嬫柟鏂囧瓧鎻愮ず  
-        //            scanner.TopText = Language.CurrentLanguage == "Chinese" ? "璇峰皢鏉″舰鐮佸鍑嗘柟妗嗗唴" : "Please align the bar code in the scan box";
-        //            scanner.BottomText = "";
-
-        //            // 寤舵椂涓夌鑷姩鎵  
-        //            var opt = new MobileBarcodeScanningOptions();
-        //            opt.DelayBetweenContinuousScans = 3000;
-        //            scanner.ScanContinuously(opt, (obj2) => {
-        //                scanner.Cancel();
-        //                action?.Invoke(obj2.Text);
-        //            });
-        //        }
-        //        else
-        //        {
-        //            action?.Invoke("");
-        //        }
-        //    });
-        //}
-
-
-        //static void initFromCameraParameters(Android.Graphics.Camera camera)
-        //{
-        //    //camera.SetLocation
-        //}
 
         public void onResult(string result)
         {

--
Gitblit v1.8.0