FLEXMetadataSection.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // FLEXMetadataSection.h
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 9/19/19.
  6. // Copyright © 2019 Flipboard. All rights reserved.
  7. //
  8. #import "FLEXExplorerSection.h"
  9. #import "FLEXObjectExplorer.h"
  10. typedef NS_ENUM(NSUInteger, FLEXMetadataKind) {
  11. FLEXMetadataKindProperties = 1,
  12. FLEXMetadataKindClassProperties,
  13. FLEXMetadataKindIvars,
  14. FLEXMetadataKindMethods,
  15. FLEXMetadataKindClassMethods,
  16. FLEXMetadataKindProtocols,
  17. FLEXMetadataKindOther
  18. };
  19. /// This section is used for displaying ObjC runtime metadata
  20. /// about a class or object, such as listing methods, properties, etc.
  21. @interface FLEXMetadataSection : FLEXExplorerSection
  22. + (instancetype)explorer:(FLEXObjectExplorer *)explorer kind:(FLEXMetadataKind)metadataKind;
  23. @property (nonatomic, readonly) FLEXMetadataKind metadataKind;
  24. /// The names of metadata to exclude. Useful if you wish to group specific
  25. /// properties or methods together in their own section outside of this one.
  26. ///
  27. /// Setting this property calls \c reloadData on this section.
  28. @property (nonatomic) NSSet<NSString *> *excludedMetadata;
  29. @end