From 7960485054f37eb60d63a98231686cef41302a8b Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期三, 11 五月 2022 09:13:56 +0800 Subject: [PATCH] 修改部分方法 --- Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/ApiDefinition.cs | 53 +++++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 41 insertions(+), 12 deletions(-) diff --git a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/ApiDefinition.cs b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/ApiDefinition.cs index f78ffac..ff407f0 100644 --- a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/ApiDefinition.cs +++ b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/ApiDefinition.cs @@ -4,17 +4,17 @@ namespace Shared.IOS.HDLLinphoneSDK { - //[Static] + [Static] //[Verify(ConstantsInterfaceAssociation)] - //partial interface Constants - //{ - // // extern NSString *const _Nonnull LCCallDelegateOpenDoorSuccess; - // [Field("LCCallDelegateOpenDoorSuccess", "__Internal")] - // NSString LCCallDelegateOpenDoorSuccess { get; } - //} + partial interface Constants + { + // extern NSString *const _Nonnull HDLLPCallDelegateOpenDoorSuccess; + [Field("HDLLPCallDelegateOpenDoorSuccess", "__Internal")] + NSString HDLLPCallDelegateOpenDoorSuccess { get; } + } - // @protocol HDLLinphoneCallDelegate <NSObject> - [Protocol, Model(AutoGeneratedName = true)] + // @protocol HDLLinphoneCallDelegate <NSObject> + [Protocol, Model(AutoGeneratedName = true)] [BaseType(typeof(NSObject))] interface HDLLinphoneCallDelegate { @@ -39,12 +39,17 @@ void OnHangUpAction(int callDuration); // @required -(void)onScreenshotSuccessfulAction:(UIImage * _Nonnull)image; + //[Abstract] + //[Export("onScreenshotSuccessfulAction:")] + //void OnScreenshotSuccessfulAction(UIImage image); + + // @required -(void)onIncomingCall:(NSString * _Nonnull)userName; [Abstract] - [Export("onScreenshotSuccessfulAction:")] - void OnScreenshotSuccessfulAction(UIImage image); + [Export("onIncomingCall:")] + void OnIncomingCall(string userName); } - //// @interface HDLLinphoneCallDelegate : NSObject + // @interface HDLLinphoneCallDelegate : NSObject //[BaseType(typeof(NSObject))] //interface HDLLinphoneCallDelegate //{ @@ -61,6 +66,14 @@ [NullAllowed, Export("hdlLinphoneCallDelegate", ArgumentSemantic.Weak)] NSObject WeakHdlLinphoneCallDelegate { get; set; } + // @property (assign, nonatomic) BOOL IsAutoJumpCallView; + [Export("IsAutoJumpCallView")] + bool IsAutoJumpCallView { get; set; } + + // @property (assign, nonatomic) BOOL IsIncomingReceivedCallState; + [Export("IsIncomingReceivedCallState")] + bool IsIncomingReceivedCallState { get; set; } + // +(instancetype)instance; [Static] [Export("instance")] @@ -73,5 +86,21 @@ // -(void)initalLinPhone; [Export("initalLinPhone")] void InitalLinPhone(); + + // -(void)callWithUserName:(NSString *)username title:(NSString *)title; + [Export("callWithUserName:title:")] + void CallWithUserName(string username, string title); + + // -(void)gotoHDLLinphoneIntercomVC:(NSString *)titleName; + [Export("gotoHDLLinphoneIntercomVC:")] + void GotoHDLLinphoneIntercomVC(string titleName); + + // -(void)logoutAllLinphoneUser; + [Export("logoutAllLinphoneUser")] + void LogoutAllLinphoneUser(); + + // -(void)clearAllConfigs; + [Export("clearAllConfigs")] + void ClearAllConfigs(); } } -- Gitblit v1.8.0