forked from callstack/react-native-opentok
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathOTNetworkTest.h
46 lines (34 loc) · 1.06 KB
/
OTNetworkTest.h
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
45
46
//
// OTNetworkTest.h
// Hello-World
//
// Created by Sridhar on 22/05/15.
// Copyright (c) 2015 TokBox, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <OpenTok/OpenTok.h>
enum OTNetworkTestResult {
OTNetworkTestResultVideoAndVoice,
OTNetworkTestResultVoiceOnly,
OTNetworkTestResultNotGood
};
@protocol OTNetworkTestDelegate;
@interface OTNetworkTest : NSObject
{
}
- (void)runConnectivityTestWithApiKey:(NSString*)apiKey
sessionId:(NSString*)sesssionId
token:(NSString*)token
executeQualityTest:(BOOL)needsQualityTest
qualityTestDuration:(int)qualityTestDuration
delegate:(id<OTNetworkTestDelegate>)delegate;
@end
@protocol OTNetworkTestDelegate <NSObject>
@optional
- (void)networkTestDidCompleteWithResult:(enum OTNetworkTestResult)result
error:(OTError*)error;
@end
@interface OTNetworkTest ()
@property (nonatomic, assign)
id<OTNetworkTestDelegate> networkTestDelegate;
@end