1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | #import <Foundation/Foundation.h>
|
9 | #import <React/RCTDefines.h>
|
10 |
|
11 | #if RCT_DEV
|
12 |
|
13 | @interface RCTBundleStatus : NSObject
|
14 | @property (atomic, assign) BOOL isLastBundleDownloadSuccess;
|
15 | @property (atomic, assign) NSTimeInterval bundleUpdateTimestamp;
|
16 | @end
|
17 |
|
18 | typedef RCTBundleStatus *(^RCTBundleStatusProvider)(void);
|
19 |
|
20 | @interface RCTInspectorPackagerConnection : NSObject
|
21 | - (instancetype)initWithURL:(NSURL *)url;
|
22 |
|
23 | - (bool)isConnected;
|
24 | - (void)connect;
|
25 | - (void)closeQuietly;
|
26 | - (void)sendEventToAllConnections:(NSString *)event;
|
27 | - (void)setBundleStatusProvider:(RCTBundleStatusProvider)bundleStatusProvider;
|
28 | @end
|
29 |
|
30 | @interface RCTInspectorRemoteConnection : NSObject
|
31 | - (void)onMessage:(NSString *)message;
|
32 | - (void)onDisconnect;
|
33 | @end
|
34 |
|
35 | #endif
|