FLEXManager.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // FLEXManager.h
  3. // Flipboard
  4. //
  5. // Created by Ryan Olson on 4/4/14.
  6. // Copyright (c) 2020 FLEX Team. 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. ///tvOS specific
  21. - (void)showHintsAlert;
  22. /// Use this to present the explorer in a specific scene when the one
  23. /// it chooses by default is not the one you wish to display it in.
  24. - (void)showExplorerFromScene:(UIWindowScene *)scene API_AVAILABLE(ios(13.0));
  25. #pragma mark - Misc
  26. /// Default database password is @c nil by default.
  27. /// Set this to the password you want the databases to open with.
  28. @property (copy, nonatomic) NSString *defaultSqliteDatabasePassword;
  29. @end
  30. typedef UIViewController * _Nullable(^FLEXCustomContentViewerFuture)(NSData *data);
  31. NS_ASSUME_NONNULL_END