萤石云 iOSSDK,移植跨平台相关工程
Davin
2024-11-20 8bfc1215384797f9b709ee06bc721d472182f15b
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
//
//  EZSDK.h
//  EZSDK
//
//  Created by 陈嘉乐 on 2021/1/27.
//
 
#import <Foundation/Foundation.h>
//#import <EZOpenSDKFramework/EZDeviceInfo.h>
#import <EZOpenSDKFramework/EZDeviceInfo.h>
 
 
 
@protocol EZSDKDelegate <NSObject>
 
/*添加设备成功
 @param deviceSerial 设备序列号
 */
-(void)addDeviceSuccessed:(NSString*)deviceSerial;
 
@end
 
@interface EZSDK : NSObject
 
@property (nonatomic, weak) id<EZSDKDelegate> delegate;//代理
 
@property (nonatomic, strong) NSArray  *connectTipModels;//需要配网提示的类型(不能通过app端配网的设备类型)
 
 
///sharedInstance
+ (instancetype)sharedInstance;
 
/**
 初始化SDK
 传入国内版key 和海外版globalAppKey
 */
- (BOOL)initLibWithAppKey:(NSString *)appKey globalAppKey:(NSString *)globalAppKey;
/**
 设置SDK的accessToken
 */
- (void)setEZAccessToken:(NSString *) accessToken;
/**
 设置HDLSDK的accessToken
 */
- (void)setHDlAccessToken:(NSString *)accessToken refreshToken:(NSString *) refreshToken;
 
/**
 配置平台appkey和appSecret
 传入appKey和appSecret
 */
- (void)configHDLServerAppKey:(NSString *)appKey appSecret:(NSString *)appSecret;
 
/**
 设置SDK的河东接口的requestHttpsHost和平台 标识,1.on+(默认) 2.evoyo
 */
- (void)setRequestHttpsHostAndPlatform:(NSString *) requestHttpsHost platform:(int)platform homeId:(NSString *)homeId;
 
/**
 直接跳转到萤石摄像头列表
 */
- (void)go2EZvizMonitor;
 
/**
 直接跳转到萤石摄像头列表(筛掉门锁设备)
 @param filterTepes 过滤型号数组
 */
- (void)toEZDeviceListViewWithFilterTypes:(NSArray*)filterTepes;
 
/**
 跳转添加添加设备
 */
- (void)addEzvizMonitor;
 
/**
 跳转添加添加设备
 @param deviceType 设备spk(用于区分是否为门锁)
 */
- (void)addEzvizMonitorWithDeviceType:(NSString *)deviceType;
 
/**
 查看视频监控直播
 */
- (void)Play:(EZDeviceInfo*)deviceInfo;
 
/**
 查看视频监控直播
 @param deviceInfo 设备信息
 @param msgId 消息Id
 @param isShow 是否展示呼叫弹框
 */
- (void)Play:(EZDeviceInfo*)deviceInfo messageId:(NSString *)msgId showCallout:(BOOL)isShow;
 
/// 指定序列号 查看视频监控直播
/// @param deviceSerial 序列号
- (void)PlayWithDeviceSerial:(NSString *)deviceSerial;
 
/// 指定序列号 查看视频监控直播(猫眼呼叫功能)
/// @param deviceSerial 序列号
- (void)PlayWithDeviceSerial:(NSString *)deviceSerial msgId:(NSString *)msgId;
 
/**
 根据spk进入门锁视频
 @param deviceSerial 序列号
 @param deviceId 设备id
 @param deviceType 设备spk(用于区分是否为门锁)
 */
-(void)PlayWithDeviceSerial:(NSString *)deviceSerial deviceId:(NSString*)deviceId deviceType:(NSString *)deviceType;
 
/**
 根据spk进入门锁视频
 @param deviceSerial 序列号
 @param deviceId 设备id
 @param deviceType 设备spk(用于区分是否为门锁)
 @param msgId 消息id
 */
-(void)PlayWithDeviceSerial:(NSString *)deviceSerial deviceId:(NSString*)deviceId deviceType:(NSString *)deviceType msgId:(NSString *)msgId;
 
/**
 打开摄像头设置页面
 */
- (void)setting:(EZDeviceInfo*)deviceInfo;
/**
 回放播放历史
 */
- (void)playBackVideo:(EZDeviceInfo*)deviceInfo;
 
////查看告警信息
//- (void)goToEZMessagePhotoVC:(EZAlarmInfo*)alarmInfo;
 
/**临时密码页
 @param deviceId 设备id
 */
- (void)toTemPassView:(NSString*)deviceId;
 
/**设备历史记录页
 @param deviceId 设备id
 */
- (void)toDeviceMsgListView:(NSString*)deviceId;
 
 
@end