1 /**
2  * Copyright (c) Facebook, Inc. and its affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
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
30