From 728ceead4ea3f18abcb6f70772e64e4549f9dcac Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 02 四月 2021 17:06:31 +0800
Subject: [PATCH] 2021-04-02 1.ZigBee 丰林同样更新SDK。

---
 xamarin/Shared.IOS.ESVideoPhoneSDK/ApiDefinition.cs |   86 +++++++++++++++----------------------------
 1 files changed, 30 insertions(+), 56 deletions(-)

diff --git a/xamarin/Shared.IOS.ESVideoPhoneSDK/ApiDefinition.cs b/xamarin/Shared.IOS.ESVideoPhoneSDK/ApiDefinition.cs
index 35d842f..34e5874 100644
--- a/xamarin/Shared.IOS.ESVideoPhoneSDK/ApiDefinition.cs
+++ b/xamarin/Shared.IOS.ESVideoPhoneSDK/ApiDefinition.cs
@@ -6,62 +6,7 @@
 
 namespace Shared.IOS.ESVideoPhoneSDK
 {
-    // The first step to creating a binding is to add your native library ("libNativeLibrary.a")
-    // to the project by right-clicking (or Control-clicking) the folder containing this source
-    // file and clicking "Add files..." and then simply select the native library (or libraries)
-    // that you want to bind.
-    //
-    // When you do that, you'll notice that MonoDevelop generates a code-behind file for each
-    // native library which will contain a [LinkWith] attribute. VisualStudio auto-detects the
-    // architectures that the native library supports and fills in that information for you,
-    // however, it cannot auto-detect any Frameworks or other system libraries that the
-    // native library may depend on, so you'll need to fill in that information yourself.
-    //
-    // Once you've done that, you're ready to move on to binding the API...
-    //
-    //
-    // Here is where you'd define your API definition for the native Objective-C library.
-    //
-    // For example, to bind the following Objective-C class:
-    //
-    //     @interface Widget : NSObject {
-    //     }
-    //
-    // The C# binding would look like this:
-    //
-    //     [BaseType (typeof (NSObject))]
-    //     interface Widget {
-    //     }
-    //
-    // To bind Objective-C properties, such as:
-    //
-    //     @property (nonatomic, readwrite, assign) CGPoint center;
-    //
-    // You would add a property definition in the C# interface like so:
-    //
-    //     [Export ("center")]
-    //     CGPoint Center { get; set; }
-    //
-    // To bind an Objective-C method, such as:
-    //
-    //     -(void) doSomething:(NSObject *)object atIndex:(NSInteger)index;
-    //
-    // You would add a method definition to the C# interface like so:
-    //
-    //     [Export ("doSomething:atIndex:")]
-    //     void DoSomething (NSObject object, int index);
-    //
-    // Objective-C "constructors" such as:
-    //
-    //     -(id)initWithElmo:(ElmoMuppet *)elmo;
-    //
-    // Can be bound as:
-    //
-    //     [Export ("initWithElmo:")]
-    //     IntPtr Constructor (ElmoMuppet elmo);
-    //
-    // For more information, see https://aka.ms/ios-binding
-    //
+    
 
     //***************************鐩戞帶椤甸潰***********************
     // typedef void (^CollectButtonCallBack)(_Bool);
@@ -128,5 +73,34 @@
         [Export("collectButtonCallBack", ArgumentSemantic.Copy)]
         CollectButtonCallBack CollectButtonCallBack { get; set; }
     }
+
+
+
+    // @interface ESVideo : NSObject
+    [BaseType(typeof(NSObject))]
+    interface ESVideo
+    {
+        //// @property (nonatomic, strong) int * _Nonnull es;
+        //[Export("es", ArgumentSemantic.Strong)]
+        //unsafe int* Es { get; set; }
+
+        //// @property (copy, nonatomic) int snapImageCallback;
+        //[Export("snapImageCallback", ArgumentSemantic.Copy)]
+        //int SnapImageCallback { get; set; }
+
+        // +(instancetype _Nonnull)shareInstance;
+        [Static]
+        [Export("shareInstance")]
+        ESVideo ShareInstance();
+
+        // +(void)haltSharedInstance;
+        [Static]
+        [Export("haltSharedInstance")]
+        void HaltSharedInstance();
+
+        // -(void)initSDK;
+        [Export("initSDK")]
+        void InitSDK();
+    }
 }
 

--
Gitblit v1.8.0