萤石云 iOSSDK,移植跨平台相关工程
JLChen
2021-01-29 2b77dde1f45abb7ef820ce91e9aedaabe8f7e20b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
//  GlobalKit.h
//  EZOpenSDKDemo
//
//  Created by DeJohn Dong on 15/10/27.
//  Copyright © 2015年 Ezviz. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
#define CURR_LANG ([[NSLocale preferredLanguages] objectAtIndex:0])
#define LanguageIsChinese ([CURR_LANG rangeOfString:@"zh-Hans"].location != NSNotFound)
 
 
//中文走国内, 不是中文走海外
 
 
#ifdef LanguageIsChinese
 
#define EZOPENSDK [EZOpenSDK class]
 
#else
 
#define EZOPENSDK [EZGlobalSDK class]
 
#endif
 
@interface GlobalKit : NSObject
 
@property (nonatomic, copy) NSString *accessToken;
@property (nonatomic, copy) NSString *deviceSerialNo;  //设备序列号
@property (nonatomic, copy) NSString *deviceModel;     //设备类型字符串
@property (nonatomic, copy) NSString *deviceVerifyCode; //设备验证码
@property (nonatomic, copy) NSMutableDictionary *deviceVerifyCodeBySerial; //内存存储:设备验证码(Value)序列号(Key)字典
@property (nonatomic, copy) NSString *configDevSerial; //指定设备序列号(可选)
 
+ (instancetype)shareKit;
 
- (void)clearSession;
 
- (void)clearDeviceInfo;
 
+(void)hello;
@end