From 3698c13aba988cd3e41b91b255e1c682c057e565 Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期四, 23 三月 2023 11:49:58 +0800 Subject: [PATCH] 1.新增历史记录相关页面及功能 2.修改配网为热点配网 3.设备列表增加过滤门锁功能 4.增加添加设备通知功能 --- EZSDK/EZSDK/EZSDK.h | 78 +++++++++++++++++++++++++++++++++++---- 1 files changed, 70 insertions(+), 8 deletions(-) diff --git a/EZSDK/EZSDK/EZSDK.h b/EZSDK/EZSDK/EZSDK.h index 2872116..5afdf36 100644 --- a/EZSDK/EZSDK/EZSDK.h +++ b/EZSDK/EZSDK/EZSDK.h @@ -6,41 +6,103 @@ // #import <Foundation/Foundation.h> +#import "EZDeviceInfo.h" + + +@protocol EZSDKDelegate <NSObject> + +//娣诲姞璁惧鎴愬姛 +-(void)addDeviceSuccessed; + +@end @interface EZSDK : NSObject + +@property (nonatomic, weak) id<EZSDKDelegate> delegate;//浠g悊 + + +///sharedInstance ++ (instancetype)sharedInstance; + /** 鍒濆鍖朣DK 浼犲叆鍥藉唴鐗坘ey 鍜屾捣澶栫増globalAppKey */ -+ (BOOL)initLibWithAppKey:(NSString *)appKey globalAppKey:(NSString *)globalAppKey; +- (BOOL)initLibWithAppKey:(NSString *)appKey globalAppKey:(NSString *)globalAppKey; /** 璁剧疆SDK鐨刟ccessToken */ -+(void)setEZAccessToken:(NSString *) accessToken; +- (void)setEZAccessToken:(NSString *) accessToken; /** 璁剧疆HDLSDK鐨刟ccessToken */ -+(void)setHDlAccessToken:(NSString *) accessToken refreshToken:(NSString *) refreshToken; +- (void)setHDlAccessToken:(NSString *)accessToken refreshToken:(NSString *) refreshToken; +/** + 璁剧疆SDK鐨勬渤涓滄帴鍙g殑requestHttpsHost鍜屽钩鍙� 鏍囪瘑锛�1.on+(榛樿) 2.evoyo + */ +- (void)setRequestHttpsHostAndPlatform:(NSString *) requestHttpsHost platform:(int)platform homeId:(NSString *)homeId; + /** 鐩存帴璺宠浆鍒拌悿鐭虫憚鍍忓ご鍒楄〃 */ -+(void)go2EZvizMonitor; +- (void)go2EZvizMonitor; + +/** + 鐩存帴璺宠浆鍒拌悿鐭虫憚鍍忓ご鍒楄〃(绛涙帀闂ㄩ攣璁惧) + @param filterTepes 杩囨护鍨嬪彿鏁扮粍 + */ +- (void)toEZDeviceListViewWithFilterTypes:(NSArray*)filterTepes; + /** 璺宠浆娣诲姞娣诲姞璁惧 */ -+(void)addEzvizMonitor; +- (void)addEzvizMonitor; + +/** + 璺宠浆娣诲姞娣诲姞璁惧 + @param deviceType 璁惧spk(鐢ㄤ簬鍖哄垎鏄惁涓洪棬閿�) + */ +- (void)addEzvizMonitorWithDeviceType:(NSString *)deviceType; + /** 鏌ョ湅瑙嗛鐩戞帶鐩存挱 */ -+(void)Play:(NSObject*)deviceInfo; +- (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:(NSObject*)deviceInfo; +- (void)setting:(EZDeviceInfo*)deviceInfo; /** 鍥炴斁鎾斁鍘嗗彶 */ -+(void)playBackVideo:(NSObject*)deviceInfo; +- (void)playBackVideo:(EZDeviceInfo*)deviceInfo; + +////鏌ョ湅鍛婅淇℃伅 +//- (void)goToEZMessagePhotoVC:(EZAlarmInfo*)alarmInfo; + +/**涓存椂瀵嗙爜椤� + @param deviceId 璁惧id + */ +- (void)toTemPassView:(NSString*)deviceId; + +/**璁惧鍘嗗彶璁板綍椤� + @param deviceId 璁惧id + */ +- (void)toDeviceMsgListView:(NSString*)deviceId; + @end -- Gitblit v1.8.0