FLEXObjectExplorerFactory.h 846 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // FLEXObjectExplorerFactory.h
  3. // Flipboard
  4. //
  5. // Created by Ryan Olson on 5/15/14.
  6. // Copyright (c) 2020 FLEX Team. All rights reserved.
  7. //
  8. #import "FLEXGlobalsEntry.h"
  9. #ifndef _FLEXObjectExplorerViewController_h
  10. #import "FLEXObjectExplorerViewController.h"
  11. #else
  12. @class FLEXObjectExplorerViewController;
  13. #endif
  14. NS_ASSUME_NONNULL_BEGIN
  15. @interface FLEXObjectExplorerFactory : NSObject <FLEXGlobalsEntry>
  16. + (nullable FLEXObjectExplorerViewController *)explorerViewControllerForObject:(nullable id)object;
  17. /// Register a specific explorer view controller class to be used when exploring
  18. /// an object of a specific class. Calls will overwrite existing registrations.
  19. /// Sections must be initialized using \c forObject: like
  20. + (void)registerExplorerSection:(Class)sectionClass forClass:(Class)objectClass;
  21. @end
  22. NS_ASSUME_NONNULL_END