@@ -26,6 +26,21 @@ NS_ASSUME_NONNULL_BEGIN
26
26
// / you may want to use __weak references.
27
27
- (void )registerGlobalEntryWithName : (NSString *)entryName objectFutureBlock : (id (^)(void ))objectFutureBlock ;
28
28
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
+
29
44
// / Adds an entry at the top of the list of Global State items.
30
45
// / Call this method before this view controller is displayed.
31
46
// / @param entryName The string to be displayed in the cell.
@@ -38,6 +53,20 @@ NS_ASSUME_NONNULL_BEGIN
38
53
- (void )registerGlobalEntryWithName : (NSString *)entryName
39
54
viewControllerFutureBlock : (UIViewController * (^)(void ))viewControllerFutureBlock ;
40
55
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
+
41
70
// / Adds an entry at the top of the list of Global State items.
42
71
// / @param entryName The string to be displayed in the cell.
43
72
// / @param rowSelectedAction When you tap on the row, this block will be invoked
@@ -48,6 +77,19 @@ NS_ASSUME_NONNULL_BEGIN
48
77
// / you may want to use __weak references as needed.
49
78
- (void )registerGlobalEntryWithName : (NSString *)entryName action : (FLEXGlobalsEntryRowAction)rowSelectedAction ;
50
79
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
+
51
93
// / Adds an entry at the top of the list of Global State items.
52
94
// / @param entryName The string to be displayed in the cell.
53
95
// / @param nestedEntriesHandler When you tap on the row, this block will be invoked
@@ -58,6 +100,19 @@ NS_ASSUME_NONNULL_BEGIN
58
100
// / you may want to use __weak references as needed.
59
101
- (void )registerNestedGlobalEntryWithName : (NSString *)entryName handler : (FLEXNestedGlobalEntriesHandler)nestedEntriesHandler ;
60
102
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
+
61
116
// / Removes all registered global entries.
62
117
- (void )clearGlobalEntries ;
63
118
0 commit comments