FLEXManager.h 1.0 KB

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