萤石云 iOSSDK,移植跨平台相关工程
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
//
//  EzvizTokenKit.h
//  EzvizOpenSDK
//
//  Created by DeJohn Dong on 15/8/31.
//  Copyright (c) 2015年 Ezviz. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
@interface EZTokenKit : NSObject
 
@property (nonatomic, readonly) NSString *token;  //获取第一个token
@property (nonatomic, readonly) NSInteger tokenCount; //当前tokenKit里还有多少token的数量
 
/**
 *  单例方法
 *
 *  @return EZTokenKit对象
 */
+ (instancetype)sharedKit;
 
/**
 *  设置TokenList数组
 *
 *  @param tokenList token数组
 */
- (void)setTokens:(NSArray *)tokenList;
 
/**
 *  清空数组
 */
- (void)clearTokens;
 
/**
 *  预加载取流token
 */
- (void)prepareToken:(void (^)(NSError *error))block;
 
@end