UNPKG

843 Btext/x-cView Raw
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 <React/RCTDefines.h>
10
11#if RCT_DEV
12
13@class RCTInspectorRemoteConnection;
14
15@interface RCTInspectorLocalConnection : NSObject
16- (void)sendMessage:(NSString *)message;
17- (void)disconnect;
18@end
19
20@interface RCTInspectorPage : NSObject
21@property (nonatomic, readonly) NSInteger id;
22@property (nonatomic, readonly) NSString *title;
23@property (nonatomic, readonly) NSString *vm;
24@end
25
26@interface RCTInspector : NSObject
27+ (NSArray<RCTInspectorPage *> *)pages;
28+ (RCTInspectorLocalConnection *)connectPage:(NSInteger)pageId
29 forRemoteConnection:(RCTInspectorRemoteConnection *)remote;
30@end
31
32#endif