From bf7f42bc3b63a0c2cec5a5adfb44feffab47a077 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 01 四月 2021 15:08:55 +0800
Subject: [PATCH] 2021-04-01 1.更新

---
 On+/xamarin/Shared.IOS.ESVideoOnSDK/Shared.IOS.ESVideoOnSDK/ApiDefinition.cs |  137 +++++++++++++++++++++++++++++++--------------
 1 files changed, 95 insertions(+), 42 deletions(-)

diff --git a/On+/xamarin/Shared.IOS.ESVideoOnSDK/Shared.IOS.ESVideoOnSDK/ApiDefinition.cs b/On+/xamarin/Shared.IOS.ESVideoOnSDK/Shared.IOS.ESVideoOnSDK/ApiDefinition.cs
index 9c5e037..a9e7c6f 100644
--- a/On+/xamarin/Shared.IOS.ESVideoOnSDK/Shared.IOS.ESVideoOnSDK/ApiDefinition.cs
+++ b/On+/xamarin/Shared.IOS.ESVideoOnSDK/Shared.IOS.ESVideoOnSDK/ApiDefinition.cs
@@ -6,48 +6,6 @@
 
 namespace Shared.IOS.ESVideoOnSDK
 {
-	// @interface ESOnIntercomViewController : UIViewController
-	[BaseType(typeof(UIViewController))]
-	interface ESOnIntercomViewController
-	{
-		// @property (nonatomic, strong) NSString * _Nonnull mESVideoID;
-		[Export("mESVideoID", ArgumentSemantic.Strong)]
-		string MESVideoID { get; set; }
-
-		// @property (assign, nonatomic) int mESRoomID;
-		[Export("mESRoomID")]
-		int MESRoomID { get; set; }
-
-		// @property (nonatomic, strong) NSString * _Nonnull roomName;
-		[Export("roomName", ArgumentSemantic.Strong)]
-		string RoomName { get; set; }
-
-		// @property (nonatomic, strong) NSString * _Nonnull deviceName;
-		[Export("deviceName", ArgumentSemantic.Strong)]
-		string DeviceName { get; set; }
-	}
-
-	// @interface ESOnMonitorViewController : UIViewController
-	[BaseType(typeof(UIViewController))]
-	interface ESOnMonitorViewController
-	{
-		// @property (nonatomic, strong) NSString * _Nonnull mESVideoID;
-		[Export("mESVideoID", ArgumentSemantic.Strong)]
-		string MESVideoID { get; set; }
-
-		// @property (assign, nonatomic) int mESRoomID;
-		[Export("mESRoomID")]
-		int MESRoomID { get; set; }
-
-		// @property (nonatomic, strong) NSString * _Nonnull roomName;
-		[Export("roomName", ArgumentSemantic.Strong)]
-		string RoomName { get; set; }
-
-		// @property (nonatomic, strong) NSString * _Nonnull deviceName;
-		[Export("deviceName", ArgumentSemantic.Strong)]
-		string DeviceName { get; set; }
-	}
-
 	// @interface ESVideo : NSObject
 	[BaseType(typeof(NSObject))]
 	interface ESVideo
@@ -75,5 +33,100 @@
 		void InitSDK();
 	}
 
+	// @protocol ESCallDelegate <NSObject>
+	[Protocol, Model(AutoGeneratedName = true)]
+	[BaseType(typeof(NSObject))]
+	interface ESCallDelegate
+	{
+		// @required -(void)onAnswerAction;
+		[Abstract]
+		[Export("onAnswerAction")]
+		void OnAnswerAction();
+
+		// @required -(void)onRejectCallAction;
+		[Abstract]
+		[Export("onRejectCallAction")]
+		void OnRejectCallAction();
+
+		// @required -(void)onUnlockAction;
+		[Abstract]
+		[Export("onUnlockAction")]
+		void OnUnlockAction();
+
+		// @required -(void)onHangUpAction:(int)callDuration;
+		[Abstract]
+		[Export("onHangUpAction:")]
+		void OnHangUpAction(int callDuration);
+
+		// @required -(void)onScreenshotSuccessfulAction:(UIImage * _Nonnull)image;
+		[Abstract]
+		[Export("onScreenshotSuccessfulAction:")]
+		void OnScreenshotSuccessfulAction(UIImage image);
+	}
+
+	//// @interface ESCallDelegate : NSObject
+	//[BaseType(typeof(NSObject))]
+	//interface ESCallDelegate
+	//{
+	//}
+
+	// @interface ESOnIntercomViewController : UIViewController
+	[BaseType(typeof(UIViewController))]
+	interface ESOnIntercomViewController
+	{
+		// @property (nonatomic, strong) NSString * _Nonnull mESVideoID;
+		[Export("mESVideoID", ArgumentSemantic.Strong)]
+		string MESVideoID { get; set; }
+
+		// @property (assign, nonatomic) int mESRoomID;
+		[Export("mESRoomID")]
+		int MESRoomID { get; set; }
+
+		// @property (nonatomic, strong) NSString * _Nonnull roomName;
+		[Export("roomName", ArgumentSemantic.Strong)]
+		string RoomName { get; set; }
+
+		// @property (nonatomic, strong) NSString * _Nonnull deviceName;
+		[Export("deviceName", ArgumentSemantic.Strong)]
+		string DeviceName { get; set; }
+
+		[Wrap("WeakMESCallDelegate")]
+		[NullAllowed]
+		ESCallDelegate MESCallDelegate { get; set; }
+
+		// @property (nonatomic, weak) id<ESCallDelegate> _Nullable mESCallDelegate;
+		[NullAllowed, Export("mESCallDelegate", ArgumentSemantic.Weak)]
+		NSObject WeakMESCallDelegate { get; set; }
+	}
+
+	// @interface ESOnMonitorViewController : UIViewController
+	[BaseType(typeof(UIViewController))]
+	interface ESOnMonitorViewController
+	{
+		// @property (nonatomic, strong) NSString * _Nonnull mESVideoID;
+		[Export("mESVideoID", ArgumentSemantic.Strong)]
+		string MESVideoID { get; set; }
+
+		// @property (assign, nonatomic) int mESRoomID;
+		[Export("mESRoomID")]
+		int MESRoomID { get; set; }
+
+		// @property (nonatomic, strong) NSString * _Nonnull roomName;
+		[Export("roomName", ArgumentSemantic.Strong)]
+		string RoomName { get; set; }
+
+		// @property (nonatomic, strong) NSString * _Nonnull deviceName;
+		[Export("deviceName", ArgumentSemantic.Strong)]
+		string DeviceName { get; set; }
+
+		[Wrap("WeakMESCallDelegate")]
+		[NullAllowed]
+		ESCallDelegate MESCallDelegate { get; set; }
+
+		// @property (nonatomic, weak) id<ESCallDelegate> _Nullable mESCallDelegate;
+		[NullAllowed, Export("mESCallDelegate", ArgumentSemantic.Weak)]
+		NSObject WeakMESCallDelegate { get; set; }
+	}
+
 }
 

--
Gitblit v1.8.0