萤石云 iOSSDK,移植跨平台相关工程
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
//
//  EZSDK.h
//  EZSDK
//
//  Created by 陈嘉乐 on 2021/1/27.
//
 
#import <Foundation/Foundation.h>
#import "EZDeviceInfo.h"
 
 
 
@protocol EZSDKDelegate <NSObject>
 
//添加设备成功
-(void)addDeviceSuccessed;
 
@end
 
@interface EZSDK : NSObject
 
@property (nonatomic, weak) id<EZSDKDelegate> delegate;//代理
 
 
///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;
/**
 设置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 deviceSerial 序列号
- (void)PlayWithDeviceSerial:(NSString *)deviceSerial;
 
/**
 根据spk进入门锁视频
 @param deviceSerial 序列号
 @param deviceId 设备id
 @param deviceType 设备spk(用于区分是否为门锁)
 */
-(void)PlayWithDeviceSerial:(NSString *)deviceSerial deviceId:(NSString*)deviceId deviceType:(NSString *)deviceType;
 
/**
 打开摄像头设置页面
 */
- (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