| | |
| | | // |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | #import "EZDeviceInfo.h" |
| | | //#import <EZOpenSDKFramework/EZDeviceInfo.h> |
| | | #import <EZOpenSDKFramework/EZDeviceInfo.h> |
| | | |
| | | //设备类型 |
| | | typedef enum { |
| | | HDLEZDeviceType_Default=0, //默认类型 |
| | | HDLEZDeviceType_Door=1,//门锁 |
| | | }HDLEZDeviceType; |
| | | |
| | | |
| | | @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; |
| | | |
| | |
| | | 设置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)go2EZvizMonitor; |
| | | |
| | | /** |
| | | 直接跳转到萤石摄像头列表(筛掉门锁设备) |
| | | @param filterTepes 过滤型号数组 |
| | | */ |
| | | - (void)toEZDeviceListViewWithFilterTypes:(NSArray*)filterTepes; |
| | | |
| | | /** |
| | | 跳转添加添加设备 |
| | | */ |
| | |
| | | |
| | | /** |
| | | 跳转添加添加设备 |
| | | @param deviceType 设备类型 |
| | | @param deviceType 设备spk(用于区分是否为门锁) |
| | | */ |
| | | - (void)addEzvizMonitorWithDeviceType:(HDLEZDeviceType)deviceType; |
| | | - (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)toTemPassView:(NSString*)deviceId; |
| | | |
| | | /**设备历史记录页 |
| | | @param deviceId 设备id |
| | | */ |
| | | - (void)toDeviceMsgListView:(NSString*)deviceId; |
| | | |
| | | |
| | | @end |