RCTInspector.h 843 B

1234567891011121314151617181920212223242526272829303132
  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. #import <Foundation/Foundation.h>
  8. #import <React/RCTDefines.h>
  9. #if RCT_DEV
  10. @class RCTInspectorRemoteConnection;
  11. @interface RCTInspectorLocalConnection : NSObject
  12. - (void)sendMessage:(NSString *)message;
  13. - (void)disconnect;
  14. @end
  15. @interface RCTInspectorPage : NSObject
  16. @property (nonatomic, readonly) NSInteger id;
  17. @property (nonatomic, readonly) NSString *title;
  18. @property (nonatomic, readonly) NSString *vm;
  19. @end
  20. @interface RCTInspector : NSObject
  21. + (NSArray<RCTInspectorPage *> *)pages;
  22. + (RCTInspectorLocalConnection *)connectPage:(NSInteger)pageId
  23. forRemoteConnection:(RCTInspectorRemoteConnection *)remote;
  24. @end
  25. #endif