萤石云 iOSSDK,移植跨平台相关工程
Davin
2024-12-18 b4e1288a9b63eb820e9c9489c56aac4bf6b31067
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
using Foundation;
using ObjCRuntime;
 
namespace EZSDK.IOS
{
    // @protocol EZSDKDelegate <NSObject>
    [Protocol, Model (AutoGeneratedName = true)]
    [BaseType (typeof(NSObject))]
    interface EZSDKDelegate
    {
        // @required -(void)addDeviceSuccessed:(NSString *)deviceSerial;
        [Abstract]
        [Export ("addDeviceSuccessed:")]
        void AddDeviceSuccessed (string deviceSerial);
    }
 
    // @interface EZSDK : NSObject
    [BaseType (typeof(NSObject))]
    interface EZSDK
    {
        [Wrap ("WeakDelegate")]
        EZSDKDelegate Delegate { get; set; }
 
        // @property (nonatomic, weak) id<EZSDKDelegate> delegate;
        [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
        NSObject WeakDelegate { get; set; }
 
        // @property (nonatomic, strong) NSArray * connectTipModels;
        [Export ("connectTipModels", ArgumentSemantic.Strong)]
        [Verify (StronglyTypedNSArray)]
        NSObject[] ConnectTipModels { get; set; }
 
        // +(instancetype)sharedInstance;
        [Static]
        [Export ("sharedInstance")]
        EZSDK SharedInstance ();
 
        // -(BOOL)initLibWithAppKey:(NSString *)appKey globalAppKey:(NSString *)globalAppKey;
        [Export ("initLibWithAppKey:globalAppKey:")]
        bool InitLibWithAppKey (string appKey, string globalAppKey);
 
        // -(void)setEZAccessToken:(NSString *)accessToken;
        [Export ("setEZAccessToken:")]
        void SetEZAccessToken (string accessToken);
 
        // -(void)setHDlAccessToken:(NSString *)accessToken refreshToken:(NSString *)refreshToken;
        [Export ("setHDlAccessToken:refreshToken:")]
        void SetHDlAccessToken (string accessToken, string refreshToken);
 
        // -(void)configHDLServerAppKey:(NSString *)appKey appSecret:(NSString *)appSecret;
        [Export ("configHDLServerAppKey:appSecret:")]
        void ConfigHDLServerAppKey (string appKey, string appSecret);
 
        // -(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 messageId:(NSString *)msgId showCallout:(BOOL)isShow;
        [Export ("Play:messageId:showCallout:")]
        void Play (NSObject deviceInfo, string msgId, bool isShow);
 
        // -(void)PlayWithDeviceSerial:(NSString *)deviceSerial;
        [Export ("PlayWithDeviceSerial:")]
        void PlayWithDeviceSerial (string deviceSerial);
 
        // -(void)PlayWithDeviceSerial:(NSString *)deviceSerial msgId:(NSString *)msgId;
        [Export ("PlayWithDeviceSerial:msgId:")]
        void PlayWithDeviceSerial (string deviceSerial, string msgId);
 
        // -(void)PlayWithDeviceSerial:(NSString *)deviceSerial deviceId:(NSString *)deviceId deviceType:(NSString *)deviceType;
        [Export ("PlayWithDeviceSerial:deviceId:deviceType:")]
        void PlayWithDeviceSerial (string deviceSerial, string deviceId, string deviceType);
 
        // -(void)PlayWithDeviceSerial:(NSString *)deviceSerial deviceId:(NSString *)deviceId deviceType:(NSString *)deviceType msgId:(NSString *)msgId;
        [Export ("PlayWithDeviceSerial:deviceId:deviceType:msgId:")]
        void PlayWithDeviceSerial (string deviceSerial, string deviceId, string deviceType, string msgId);
 
        // -(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);
    }
}