//
|
// 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;
|
/**
|
设置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
|