From df7c5aad59e9a923e0764fabd35edb850c6e7b82 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 24 一月 2022 11:26:20 +0800
Subject: [PATCH] ios友盟sdk

---
 UMSdk/ApiDefinition.cs |   68 +++++----------------------------
 1 files changed, 11 insertions(+), 57 deletions(-)

diff --git a/UMSdk/ApiDefinition.cs b/UMSdk/ApiDefinition.cs
index cbde070..3729511 100644
--- a/UMSdk/ApiDefinition.cs
+++ b/UMSdk/ApiDefinition.cs
@@ -4,63 +4,17 @@
 using Foundation;
 using UIKit;
 
-namespace NativeLibrary
+namespace UMSdk
 {
-    // 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
-    //
+	// @interface HDLUMSDK : NSObject
+	[BaseType(typeof(NSObject))]
+	[Protocol]
+	interface HDLUMSDK
+	{
+		// +(void)initUMSDKWithAppKey:(NSString *)appKey channel:(NSString *)channel;
+		[Static]
+		[Export("initUMSDKWithAppKey:channel:")]
+		void InitUMSDKWithAppKey(string appKey, string channel);
+	}
 }
 

--
Gitblit v1.8.0