9 #import <Foundation/Foundation.h>
10 #import "EZConstants.h"
35 + (BOOL)initLibWithAppKey:(NSString *)appKey;
46 + (BOOL)initLibWithAppKey:(NSString *)appKey url:(NSString *)url authUrl:(NSString *)authUrl;
54 + (void)setAccessToken:(NSString *)accessToken;
78 + (void)enableP2P:(BOOL)enable;
88 + (NSOperation *)getAreaList:(
void (^)(NSArray *areaList, NSError *error))completion;
96 + (void)openLoginPage:(NSString *)areaId
105 + (void)logout:(
void (^)(NSError *error))completion;
116 + (NSOperation *)deleteAlarm:(NSArray *)alarmIds
117 completion:(
void (^)(NSError *error))completion;
129 + (NSOperation *)setAlarmStatus:(NSArray *)alarmIds
130 alarmStatus:(EZMessageStatus)status
131 completion:(
void (^)(NSError *error))completion;
144 + (NSOperation *)deleteDevice:(NSString *)deviceSerial
145 completion:(
void (^)(NSError *error))completion;
158 + (BOOL)startConfigWifi:(NSString *)ssid
159 password:(NSString *)password
160 deviceSerial:(NSString *)deviceSerial
161 deviceStatus:(
void (^)(EZWifiConfigStatus status))statusBlock;
182 + (NSOperation *)controlPTZ:(NSString *)deviceSerial
183 cameraNo:(NSInteger)cameraNo
184 command:(EZPTZCommand)command
185 action:(EZPTZAction)action
186 speed:(NSInteger)speed
187 result:(
void (^)(NSError *error))resultBlock;
198 + (void)controlVideoFlip:(NSString *)deviceSerial
199 cameraNo:(NSInteger)cameraNo
200 command:(EZDisplayCommand)command
201 result:(
void (^)(NSError *error))resultBlock;
212 + (
EZPlayer *)createPlayerWithDeviceSerial:(NSString *)deviceSerial
213 cameraNo:(NSInteger)cameraNo;
224 + (
EZPlayer *)createPlayerWithUrl:(NSString *)url;
235 + (BOOL)releasePlayer:(
EZPlayer *)player;
237 #pragma mark - V3.1 新增加接口
248 + (NSData *)decryptData:(NSData *)data verifyCode:(NSString *)verifyCode;
251 #pragma mark - V3.2 新增加接口
262 + (NSOperation *)getDeviceVersion:(NSString *)deviceSerial
263 completion:(
void (^)(
EZDeviceVersion *version, NSError *error))completion;
277 + (NSOperation *)setDeviceEncryptStatus:(NSString *)deviceSerial
278 verifyCode:(NSString *)verifyCode
279 encrypt:(BOOL)isEncrypt
280 completion:(
void (^)(NSError *error))completion;
292 + (NSOperation *)setDeviceName:(NSString *)deviceName
293 deviceSerial:(NSString *)deviceSerial
294 completion:(
void (^)(NSError *error))completion;
304 + (NSOperation *)getUserInfo:(
void (^)(
EZUserInfo *userInfo, NSError *error))completion;
316 + (NSOperation *)getUnreadMessageCount:(NSString *)deviceSerial
317 messageType:(EZMessageType)type
318 completion:(
void (^)(NSInteger count, NSError *error))completion;
333 + (NSOperation *)getLeaveMessageList:(NSString *)deviceSerial
334 pageIndex:(NSInteger)pageIndex
335 pageSize:(NSInteger)pageSize
336 beginTime:(NSDate *)beginTime
337 endTime:(NSDate *)endTime
338 completion:(
void (^)(NSArray *leaveMessageList, NSInteger totalCount, NSError *error))completion;
350 + (NSOperation *)setLeaveMessageStatus:(NSArray *)leaveIds
351 messageStatus:(EZMessageStatus)status
352 completion:(
void (^)(NSError *error))completion;
363 + (NSOperation *)deleteLeaveMessage:(NSArray *)leaveIds
364 completion:(
void (^)(NSError *error))completion;
375 + (NSOperation *)getStorageStatus:(NSString *)deviceSerial
376 completion:(
void (^)(NSArray *storageStatus, NSError *error))completion;
388 + (NSOperation *)formatStorage:(NSString *)deviceSerial
389 storageIndex:(NSInteger)storageIndex
390 completion:(
void (^)(NSError *error))completion;
402 + (NSOperation *)probeDeviceInfo:(NSString *) deviceSerial
403 deviceType:(NSString *) deviceType
415 + (NSOperation *)getDeviceUpgradeStatus:(NSString *)deviceSerial
427 + (NSOperation *)upgradeDevice:(NSString *)deviceSerial
428 completion:(
void (^)(NSError *error))completion;
440 completion:(
void (^)(NSData *data, NSInteger resultCode))completion;
448 + (void)openCloudPage:(NSString *)deviceSerial;
456 + (void)openChangePasswordPage:(
void (^)(NSInteger resultCode))completion;
466 + (BOOL)setDebugLogEnable:(BOOL)enable;
478 + (NSOperation *)getDeviceList:(NSInteger)pageIndex
479 pageSize:(NSInteger)pageSize
480 completion:(
void (^)(NSArray *deviceList, NSInteger totalCount, NSError *error))completion;
492 + (NSOperation *)getSharedDeviceList:(NSInteger)pageIndex
493 pageSize:(NSInteger)pageSize
494 completion:(
void (^)(NSArray *deviceList, NSInteger totalCount, NSError *error))completion;
508 + (NSOperation *)searchRecordFileFromCloud:(NSString *)deviceSerial
509 cameraNo:(NSInteger)cameraNo
510 beginTime:(NSDate *)beginTime
511 endTime:(NSDate *)endTime
512 completion:(
void (^)(NSArray *couldRecords, NSError *error))completion;
526 + (NSOperation *)searchRecordFileFromDevice:(NSString *)deviceSerial
527 cameraNo:(NSInteger)cameraNo
528 beginTime:(NSDate *)beginTime
529 endTime:(NSDate *)endTime
530 completion:(
void (^)(NSArray *deviceRecords, NSError *error))completion;
545 + (NSOperation *)getAlarmList:(NSString *)deviceSerial
546 pageIndex:(NSInteger)pageIndex
547 pageSize:(NSInteger)pageSize
548 beginTime:(NSDate *)beginTime
549 endTime:(NSDate *)endTime
550 completion:(
void (^)(NSArray *alarmList, NSInteger totalCount, NSError *error))completion;
562 + (NSOperation *)addDevice:(NSString *)deviceSerial
563 verifyCode:(NSString *)verifyCode
564 completion:(
void (^)(NSError *error))completion;
578 + (NSOperation *)captureCamera:(NSString *)deviceSerial
579 cameraNo:(NSInteger)cameraNo
580 completion:(
void (^)(NSString *url, NSError *error))completion;
594 + (NSOperation *)setVideoLevel:(NSString *)deviceSerial
595 cameraNo:(NSInteger)cameraNo
596 videoLevel:(NSInteger)videoLevel
597 completion:(
void (^)(NSError *error))completion;
609 + (NSOperation *)setDefence:(EZDefenceStatus)defence
610 deviceSerial:(NSString *)deviceSerial
611 completion:(
void (^)(NSError *error))completion;
613 #pragma mark - V4.3 新增加接口
624 + (NSOperation *)getDeviceInfo:(NSString *)deviceSerial
625 completion:(
void (^)(
EZDeviceInfo *deviceInfo, NSError *error))completion;
635 #pragma mark - V4.4 新增加接口
643 #pragma mark - V4.5 新增加接口
651 #pragma mark - V4.7 新增接口
662 + (NSOperation *)getHiddnsDeviceInfo:(NSString *)deviceSerial
663 domain:(NSString *) domain
675 + (NSOperation *)setHiddnsDomain:(NSString *)deviceSerial
676 domain:(NSString *) domain
677 completion:(
void (^)(NSError *error))completion;
687 + (NSOperation *)setHiddnsModeAuto:(NSString *)deviceSerial
688 completion:(
void (^)(NSError *error))completion;
700 + (NSOperation *)setHiddnsModeManual:(NSString *)deviceSerial
701 httpPort:(NSInteger) httpPort
702 cmdPort:(NSInteger) cmdPort
703 completion:(
void (^)(NSError *error))completion;
714 + (NSOperation *)getHiddnsDeviceList:(NSInteger) pageIndex
715 pageSize:(NSInteger) pageSize
716 completion:(
void (^)(NSArray *ddnsDeviceList, NSInteger totalCount, NSError *error))completion;
727 + (NSOperation *)shareHiddnsDevice:(NSString *) deviceSerial
728 account:(NSString *) account
729 completion:(
void (^)(NSError *error))completion;
740 + (NSOperation *)getShareHiddnsDeviceList:(NSInteger) pageIndex
741 pageSize:(NSInteger) pageSize
742 completion:(
void (^)(NSArray *ddnsDeviceList, NSInteger totalCount, NSError *error))completion;
745 #pragma mark - V4.8.2 新增加接口
767 + (BOOL) isEzvizAppInstalledWithType:(EZAppType) appType;
775 + (BOOL) ezvizLoginWithAppType:(EZAppType) appType;
784 + (BOOL) gotoEzvizAppPage:(EZAppPageType) pageType appType:(EZAppType) appType;
794 + (BOOL) handleOpenUrl:(NSURL *) url options:(NSDictionary *) opetions delegate:(
id<
EZOpenSDKDelegate>) delegate;
814 + (BOOL) handleOpenUrl:(NSURL *) url
815 sourceApplication:(NSString *)
816 sourceApplication annotation:(
id) annotation
819 #pragma mark - V4.8.3 新增加接口
833 + (BOOL)startConfigWifi:(NSString *) ssid
834 password:(NSString *) password
835 deviceSerial:(NSString *) deviceSerial
836 mode:(NSInteger) mode
837 deviceStatus:(
void (^)(EZWifiConfigStatus status,NSString *deviceSerial))statusBlock;
839 #pragma mark - V4.8.4
850 + (BOOL)startAPConfigWifiWithSsid:(NSString *) ssid
851 password:(NSString *) password
852 deviceSerial:(NSString *) deviceSerial
853 verifyCode:(NSString *) verifyCode
854 result:(
void (^)(BOOL ret)) callback;
Definition: EZConstants.h:12
此类为查询设备信息对象(设备添加前使用)
Definition: EZProbeDeviceInfo.h:12
此类为通道信息对象
Definition: EZCameraInfo.h:12
此类为设备信息对象
Definition: EZDeviceInfo.h:12
Definition: EZHiddnsDeviceInfo.h:11
NSString * getTerminalId()
NSString * getAccesstoken()
void clearStreamInfoCache()
此类为萤石播放器类
Definition: EZPlayer.h:104
此类为留言消息对象
Definition: EZLeaveMessage.h:12
此类为设备版本信息对象
Definition: EZDeviceVersion.h:12
此类为设备升级状态对象
Definition: EZDeviceUpgradeStatus.h:12
此类为萤石开放平台授权登录以后的凭证信息
Definition: EZAccessToken.h:12
此类为用户信息对象
Definition: EZUserInfo.h:12
此类为EZGlobalSDK接口类 特别说明:110001(参数错误)、110002(AccessToken过期)、149999、150000(服务...
Definition: EZGlobalSDK.h:24