@@ -26,6 +26,21 @@ NS_ASSUME_NONNULL_BEGIN
2626// / you may want to use __weak references.
2727- (void )registerGlobalEntryWithName : (NSString *)entryName objectFutureBlock : (id (^)(void ))objectFutureBlock ;
2828
29+ // / Adds an entry at the top of the list of Global State items.
30+ // / Call this method before this view controller is displayed.
31+ // / @param entryName The string to be displayed in the cell.
32+ // / @param cellAccessoryType The accessory type to be used for the cell.
33+ // / @param objectFutureBlock When you tap on the row, information about the object returned
34+ // / by this block will be displayed. Passing a block that returns an object allows you to display
35+ // / information about an object whose actual pointer may change at runtime (e.g. +currentUser)
36+ // / @note This method must be called from the main thread.
37+ // / The objectFutureBlock will be invoked from the main thread and may return nil.
38+ // / @note The passed block will be copied and retain for the duration of the application,
39+ // / you may want to use __weak references.
40+ - (void )registerGlobalEntryWithName : (NSString *)entryName
41+ cellAccessoryType : (UITableViewCellAccessoryType)cellAccessoryType
42+ objectFutureBlock : (id (^)(void ))objectFutureBlock ;
43+
2944// / Adds an entry at the top of the list of Global State items.
3045// / Call this method before this view controller is displayed.
3146// / @param entryName The string to be displayed in the cell.
@@ -38,6 +53,20 @@ NS_ASSUME_NONNULL_BEGIN
3853- (void )registerGlobalEntryWithName : (NSString *)entryName
3954 viewControllerFutureBlock : (UIViewController * (^)(void ))viewControllerFutureBlock ;
4055
56+ // / Adds an entry at the top of the list of Global State items.
57+ // / Call this method before this view controller is displayed.
58+ // / @param entryName The string to be displayed in the cell.
59+ // / @param cellAccessoryType The accessory type to be used for the cell.
60+ // / @param viewControllerFutureBlock When you tap on the row, view controller returned
61+ // / by this block will be pushed on the navigation controller stack.
62+ // / @note This method must be called from the main thread.
63+ // / The viewControllerFutureBlock will be invoked from the main thread and may not return nil.
64+ // / @note The passed block will be copied and retain for the duration of the application,
65+ // / you may want to use __weak references as needed.
66+ - (void )registerGlobalEntryWithName : (NSString *)entryName
67+ cellAccessoryType : (UITableViewCellAccessoryType)cellAccessoryType
68+ viewControllerFutureBlock : (UIViewController * (^)(void ))viewControllerFutureBlock ;
69+
4170// / Adds an entry at the top of the list of Global State items.
4271// / @param entryName The string to be displayed in the cell.
4372// / @param rowSelectedAction When you tap on the row, this block will be invoked
@@ -48,6 +77,19 @@ NS_ASSUME_NONNULL_BEGIN
4877// / you may want to use __weak references as needed.
4978- (void )registerGlobalEntryWithName : (NSString *)entryName action : (FLEXGlobalsEntryRowAction)rowSelectedAction ;
5079
80+ // / Adds an entry at the top of the list of Global State items.
81+ // / @param entryName The string to be displayed in the cell.
82+ // / @param cellAccessoryType The accessory type to be used for the cell.
83+ // / @param rowSelectedAction When you tap on the row, this block will be invoked
84+ // / with the host table view view controller. Use it to deselect the row or present an alert.
85+ // / @note This method must be called from the main thread.
86+ // / The rowSelectedAction will be invoked from the main thread.
87+ // / @note The passed block will be copied and retained for the duration of the application,
88+ // / you may want to use __weak references as needed.
89+ - (void )registerGlobalEntryWithName : (NSString *)entryName
90+ cellAccessoryType : (UITableViewCellAccessoryType)cellAccessoryType
91+ action : (FLEXGlobalsEntryRowAction)rowSelectedAction ;
92+
5193// / Adds an entry at the top of the list of Global State items.
5294// / @param entryName The string to be displayed in the cell.
5395// / @param nestedEntriesHandler When you tap on the row, this block will be invoked
@@ -58,6 +100,19 @@ NS_ASSUME_NONNULL_BEGIN
58100// / you may want to use __weak references as needed.
59101- (void )registerNestedGlobalEntryWithName : (NSString *)entryName handler : (FLEXNestedGlobalEntriesHandler)nestedEntriesHandler ;
60102
103+ // / Adds an entry at the top of the list of Global State items.
104+ // / @param entryName The string to be displayed in the cell.
105+ // / @param cellAccessoryType The accessory type to be used for the cell.
106+ // / @param nestedEntriesHandler When you tap on the row, this block will be invoked
107+ // / with the container object. Use it to register nested entries.
108+ // / @note This method must be called from the main thread.
109+ // / The nestedEntriesHandler will be invoked from the main thread.
110+ // / @note The passed block will be copied and retained for the duration of the application,
111+ // / you may want to use __weak references as needed.
112+ - (void )registerNestedGlobalEntryWithName : (NSString *)entryName
113+ cellAccessoryType : (UITableViewCellAccessoryType)cellAccessoryType
114+ handler : (FLEXNestedGlobalEntriesHandler)nestedEntriesHandler ;
115+
61116// / Removes all registered global entries.
62117- (void )clearGlobalEntries ;
63118
0 commit comments