FLEXManager.h 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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 <Foundation/Foundation.h>
  9. @interface FLEXManager : NSObject
  10. + (instancetype)sharedManager;
  11. @property (nonatomic, readonly) BOOL isHidden;
  12. - (void)showExplorer;
  13. - (void)hideExplorer;
  14. #pragma mark - Extensions
  15. /// Adds an entry at the bottom of the list of Global State items. Call this method before this view controller is displayed.
  16. /// @param entryName The string to be displayed in the cell.
  17. /// @param objectFutureBlock When you tap on the row, information about the object returned by this block will be displayed.
  18. /// Passing a block that returns an object allows you to display information about an object whose actual pointer may change at runtime (e.g. +currentUser)
  19. /// @note This method must be called from the main thread.
  20. /// The objectFutureBlock will be invoked from the main thread and may return nil.
  21. /// @note The passed block will be copied and retain for the duration of the application, you may want to use __weak references.
  22. - (void)registerGlobalEntryWithName:(NSString *)entryName objectFutureBlock:(id(^)(void))objectFutureBlock;
  23. @end