From 0de4cf306d8e13fd57b3e04bfb81362a10f12a4d Mon Sep 17 00:00:00 2001 From: Davin <591807572@qq.com> Date: 星期一, 10 七月 2023 16:10:53 +0800 Subject: [PATCH] feature UI补全 --- EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs | 133 ++++++++++++++++++++++++++++++-------------- 1 files changed, 91 insertions(+), 42 deletions(-) diff --git a/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs b/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs index 2d0efaa..b845f1b 100644 --- a/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs +++ b/EZSDK.IOS/EZSDK.IOS/ApiDefinition.cs @@ -1,54 +1,103 @@ -锘縰sing System; - +锘縰sing Foundation; using ObjCRuntime; -using Foundation; -using UIKit; namespace EZSDK.IOS { - // @interface EZSDK : NSObject - [BaseType(typeof(NSObject))] - interface EZSDK - { - // +(BOOL)initLibWithAppKey:(NSString *)appKey globalAppKey:(NSString *)globalAppKey; - [Static] - [Export("initLibWithAppKey:globalAppKey:")] - bool InitLibWithAppKey(string appKey, string globalAppKey); + // @protocol EZSDKDelegate <NSObject> + [Protocol, Model(AutoGeneratedName = true)] + [BaseType(typeof(NSObject))] + interface EZSDKDelegate + { + // @required -(void)addDeviceSuccessed:(NSString *)deviceSerial; + [Abstract] + [Export("addDeviceSuccessed:")] + void AddDeviceSuccessed(string deviceSerial); + } - // +(void)setEZAccessToken:(NSString *)accessToken; - [Static] - [Export("setEZAccessToken:")] - void SetEZAccessToken(string accessToken); + // @interface EZSDK : NSObject + [BaseType(typeof(NSObject))] + interface EZSDK + { + [Wrap("WeakDelegate")] + EZSDKDelegate Delegate { get; set; } - // +(void)setHDlAccessToken:(NSString *)accessToken refreshToken:(NSString *)refreshToken; - [Static] - [Export("setHDlAccessToken:refreshToken:")] - void SetHDlAccessToken(string accessToken, string refreshToken); + // @property (nonatomic, weak) id<EZSDKDelegate> delegate; + [NullAllowed, Export("delegate", ArgumentSemantic.Weak)] + NSObject WeakDelegate { get; set; } - // +(void)go2EZvizMonitor; - [Static] - [Export("go2EZvizMonitor")] - void Go2EZvizMonitor(); + // @property (nonatomic, strong) NSArray * connectTipModels; + [Export("connectTipModels", ArgumentSemantic.Strong)] + // [Verify(StronglyTypedNSArray)] + NSObject[] ConnectTipModels { get; set; } - // +(void)addEzvizMonitor; - [Static] - [Export("addEzvizMonitor")] - void AddEzvizMonitor(); + // +(instancetype)sharedInstance; + [Static] + [Export("sharedInstance")] + EZSDK SharedInstance(); - // +(void)Play:(NSObject *)deviceInfo; - [Static] - [Export("Play:")] - void Play(NSObject deviceInfo); + // -(BOOL)initLibWithAppKey:(NSString *)appKey globalAppKey:(NSString *)globalAppKey; + [Export("initLibWithAppKey:globalAppKey:")] + bool InitLibWithAppKey(string appKey, string globalAppKey); - // +(void)setting:(NSObject *)deviceInfo; - [Static] - [Export("setting:")] - void Setting(NSObject deviceInfo); + // -(void)setEZAccessToken:(NSString *)accessToken; + [Export("setEZAccessToken:")] + void SetEZAccessToken(string accessToken); - // +(void)playBackVideo:(NSObject *)deviceInfo; - [Static] - [Export("playBackVideo:")] - void PlayBackVideo(NSObject deviceInfo); - } + // -(void)setHDlAccessToken:(NSString *)accessToken refreshToken:(NSString *)refreshToken; + [Export("setHDlAccessToken:refreshToken:")] + void SetHDlAccessToken(string accessToken, string refreshToken); + + // -(void)setRequestHttpsHostAndPlatform:(NSString *)requestHttpsHost platform:(int)platform homeId:(NSString *)homeId; + [Export("setRequestHttpsHostAndPlatform:platform:homeId:")] + void SetRequestHttpsHostAndPlatform(string requestHttpsHost, int platform, string homeId); + + // -(void)go2EZvizMonitor; + [Export("go2EZvizMonitor")] + void Go2EZvizMonitor(); + + // -(void)toEZDeviceListViewWithFilterTypes:(NSArray *)filterTepes; + [Export("toEZDeviceListViewWithFilterTypes:")] + // [Verify(StronglyTypedNSArray)] + void ToEZDeviceListViewWithFilterTypes(NSObject[] filterTepes); + + // -(void)addEzvizMonitor; + [Export("addEzvizMonitor")] + void AddEzvizMonitor(); + + // -(void)addEzvizMonitorWithDeviceType:(NSString *)deviceType; + [Export("addEzvizMonitorWithDeviceType:")] + void AddEzvizMonitorWithDeviceType(string deviceType); + + // -(void)Play:(id)deviceInfo; + [Export("Play:")] + void Play(NSObject deviceInfo); + + // -(void)Play:(id)deviceInfo showCallout:(BOOL)isShow; + [Export("Play:showCallout:")] + void Play(NSObject deviceInfo, bool isShow); + + // -(void)PlayWithDeviceSerial:(NSString *)deviceSerial; + [Export("PlayWithDeviceSerial:")] + void PlayWithDeviceSerial(string deviceSerial); + + // -(void)PlayWithDeviceSerial:(NSString *)deviceSerial deviceId:(NSString *)deviceId deviceType:(NSString *)deviceType; + [Export("PlayWithDeviceSerial:deviceId:deviceType:")] + void PlayWithDeviceSerial(string deviceSerial, string deviceId, string deviceType); + + // -(void)setting:(id)deviceInfo; + [Export("setting:")] + void Setting(NSObject deviceInfo); + + // -(void)playBackVideo:(id)deviceInfo; + [Export("playBackVideo:")] + void PlayBackVideo(NSObject deviceInfo); + + // -(void)toTemPassView:(NSString *)deviceId; + [Export("toTemPassView:")] + void ToTemPassView(string deviceId); + + // -(void)toDeviceMsgListView:(NSString *)deviceId; + [Export("toDeviceMsgListView:")] + void ToDeviceMsgListView(string deviceId); + } } - -- Gitblit v1.8.0