FLEXManager.h 1016 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 "FLEXExplorerToolbar.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. @property (nonatomic, readonly) FLEXExplorerToolbar *toolbar;
  16. - (void)showExplorer;
  17. - (void)hideExplorer;
  18. - (void)toggleExplorer;
  19. /// Use this to present the explorer in a specific scene when the one
  20. /// it chooses by default is not the one you wish to display it in.
  21. - (void)showExplorerFromScene:(UIWindowScene *)scene API_AVAILABLE(ios(13.0));
  22. #pragma mark - Misc
  23. /// Default database password is @c nil by default.
  24. /// Set this to the password you want the databases to open with.
  25. @property (copy, nonatomic) NSString *defaultSqliteDatabasePassword;
  26. @end
  27. typedef UIViewController *(^FLEXCustomContentViewerFuture)(NSData *data);