萤石云 iOSSDK,移植跨平台相关工程
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;//代理
///sharedInstance
+ (instancetype)sharedInstance;
/**
 初始化SDK
 传入国内版key 和海外版globalAppKey
 */
+ (BOOL)initLibWithAppKey:(NSString *)appKey globalAppKey:(NSString *)globalAppKey;
- (BOOL)initLibWithAppKey:(NSString *)appKey globalAppKey:(NSString *)globalAppKey;
/**
 设置SDK的accessToken
 */
+(void)setEZAccessToken:(NSString *) accessToken;
- (void)setEZAccessToken:(NSString *) accessToken;
/**
 设置HDLSDK的accessToken
 */
+(void)setHDlAccessToken:(NSString *) accessToken refreshToken:(NSString *) refreshToken;
- (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;
- (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