2018-09-11 22:27:47 +00:00
|
|
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
2018-05-31 22:31:03 +00:00
|
|
|
|
|
|
|
// This source code is licensed under the MIT license found in the
|
|
|
|
// LICENSE file in the root directory of this source tree.
|
2017-06-08 14:34:45 +00:00
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <React/RCTDefines.h>
|
|
|
|
|
|
|
|
#if RCT_DEV
|
|
|
|
|
|
|
|
@class RCTInspectorRemoteConnection;
|
|
|
|
|
|
|
|
@interface RCTInspectorLocalConnection : NSObject
|
|
|
|
- (void)sendMessage:(NSString *)message;
|
|
|
|
- (void)disconnect;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface RCTInspectorPage : NSObject
|
|
|
|
@property (nonatomic, readonly) NSInteger id;
|
|
|
|
@property (nonatomic, readonly) NSString *title;
|
2018-02-13 16:06:43 +00:00
|
|
|
@property (nonatomic, readonly) NSString *vm;
|
2017-06-08 14:34:45 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface RCTInspector : NSObject
|
|
|
|
+ (NSArray<RCTInspectorPage *> *)pages;
|
|
|
|
+ (RCTInspectorLocalConnection *)connectPage:(NSInteger)pageId
|
|
|
|
forRemoteConnection:(RCTInspectorRemoteConnection *)remote;
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|