mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 19:44:13 +00:00
da7873563b
Reviewed By: fkgozali Differential Revision: D8065619 fbshipit-source-id: 719c303b40c96950bab8e5dde9a75f449b2956c6
33 lines
879 B
Objective-C
33 lines
879 B
Objective-C
// Copyright (c) 2004-present, Facebook, Inc.
|
|
|
|
// This source code is licensed under the MIT license found in the
|
|
// LICENSE file in the root directory of this source tree.
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <React/RCTDefines.h>
|
|
|
|
#if RCT_DEV
|
|
|
|
@interface RCTBundleStatus : NSObject
|
|
@property (atomic, assign) BOOL isLastBundleDownloadSuccess;
|
|
@property (atomic, assign) NSTimeInterval bundleUpdateTimestamp;
|
|
@end
|
|
|
|
typedef RCTBundleStatus *(^RCTBundleStatusProvider)(void);
|
|
|
|
@interface RCTInspectorPackagerConnection : NSObject
|
|
- (instancetype)initWithURL:(NSURL *)url;
|
|
|
|
- (void)connect;
|
|
- (void)closeQuietly;
|
|
- (void)sendEventToAllConnections:(NSString *)event;
|
|
- (void)setBundleStatusProvider:(RCTBundleStatusProvider)bundleStatusProvider;
|
|
@end
|
|
|
|
@interface RCTInspectorRemoteConnection : NSObject
|
|
- (void)onMessage:(NSString *)message;
|
|
- (void)onDisconnect;
|
|
@end
|
|
|
|
#endif
|