FLEXManager.h 946 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // FLEXManager.h
  3. // Flipboard
  4. //
  5. // Created by Ryan Olson on 4/4/14.
  6. // Copyright (c) 2014 Flipboard. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #if !FLEX_AT_LEAST_IOS13_SDK
  10. @class UIWindowScene;
  11. #endif
  12. @interface FLEXManager : NSObject
  13. @property (nonatomic, readonly, class) FLEXManager *sharedManager;
  14. @property (nonatomic, readonly) BOOL isHidden;
  15. - (void)showExplorer;
  16. - (void)hideExplorer;
  17. - (void)toggleExplorer;
  18. /// Use this to present the explorer in a specific scene when the one
  19. /// it chooses by default is not the one you wish to display it in.
  20. - (void)showExplorerFromScene:(UIWindowScene *)scene API_AVAILABLE(ios(13.0));
  21. #pragma mark - Misc
  22. /// Default database password is @c nil by default.
  23. /// Set this to the password you want the databases to open with.
  24. @property (copy, nonatomic) NSString *defaultSqliteDatabasePassword;
  25. @end
  26. typedef UIViewController *(^FLEXCustomContentViewerFuture)(NSData *data);