From b4e1288a9b63eb820e9c9489c56aac4bf6b31067 Mon Sep 17 00:00:00 2001 From: Davin <591807572@qq.com> Date: 星期三, 18 十二月 2024 14:34:16 +0800 Subject: [PATCH] feature 图片资源更新 --- EZSDK/EZSDK/EZSDK.h | 122 ++++++++++++++++++++++++++++++++++++++-- 1 files changed, 116 insertions(+), 6 deletions(-) diff --git a/EZSDK/EZSDK/EZSDK.h b/EZSDK/EZSDK/EZSDK.h index 43a269c..2dff88e 100644 --- a/EZSDK/EZSDK/EZSDK.h +++ b/EZSDK/EZSDK/EZSDK.h @@ -6,26 +6,136 @@ // #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;//浠g悊 + +@property (nonatomic, strong) NSArray *connectTipModels;//闇�瑕侀厤缃戞彁绀虹殑绫诲瀷锛堜笉鑳介�氳繃app绔厤缃戠殑璁惧绫诲瀷锛� + + +///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; +/** + 璁剧疆HDLSDK鐨刟ccessToken + */ +- (void)setHDlAccessToken:(NSString *)accessToken refreshToken:(NSString *) refreshToken; /** - 鍥炴斁鎾斁鍘嗗彶 + 閰嶇疆骞冲彴appkey鍜宎ppSecret + 浼犲叆appKey鍜宎ppSecret */ -+(void)playBackVideo:(NSObject*)deviceInfo; +- (void)configHDLServerAppKey:(NSString *)appKey appSecret:(NSString *)appSecret; + /** - 鎾斁瑙嗛 + 璁剧疆SDK鐨勬渤涓滄帴鍙g殑requestHttpsHost鍜屽钩鍙� 鏍囪瘑锛�1.on+(榛樿) 2.evoyo */ -+(void)Play:(NSObject*)deviceInfo; +- (void)setRequestHttpsHostAndPlatform:(NSString *) requestHttpsHost platform:(int)platform homeId:(NSString *)homeId; /** 鐩存帴璺宠浆鍒拌悿鐭虫憚鍍忓ご鍒楄〃 */ -+(void)go2EZvizMonitor; +- (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 -- Gitblit v1.8.0