1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | #import <Foundation/Foundation.h>
|
9 | #import "RNCConnectionState.h"
|
10 |
|
11 | NS_ASSUME_NONNULL_BEGIN
|
12 |
|
13 | @class RNCConnectionStateWatcher;
|
14 |
|
15 |
|
16 | @protocol RNCConnectionStateWatcherDelegate
|
17 |
|
18 | - (void)connectionStateWatcher:(RNCConnectionStateWatcher *)connectionStateWatcher didUpdateState:(RNCConnectionState *)state;
|
19 |
|
20 | @end
|
21 |
|
22 | @interface RNCConnectionStateWatcher : NSObject
|
23 |
|
24 | - (instancetype)initWithDelegate:(id<RNCConnectionStateWatcherDelegate>)delegate;
|
25 | - (RNCConnectionState *)currentState;
|
26 |
|
27 | @end
|
28 |
|
29 | NS_ASSUME_NONNULL_END
|