@@ -185,9 +185,9 @@ NS_SWIFT_NAME(RemoteConfig)
185
185
- (nonnull instancetype )init __attribute__ ((unavailable(" Use +remoteConfig instead." )));
186
186
187
187
// / Ensures initialization is complete and clients can begin querying for Remote Config values.
188
- // / @param completionHandler Initialization complete callback.
188
+ // / @param completionHandler Initialization complete callback with error parameter .
189
189
- (void )ensureInitializedWithCompletionHandler:
190
- (nonnull FIRRemoteConfigInitializationCompletion )completionHandler;
190
+ (void (^_Nonnull)( NSError *_Nullable initializationError) )completionHandler;
191
191
#pragma mark - Fetch
192
192
// / Fetches Remote Config data with a callback. Call activateFetched to make fetched data available
193
193
// / to your app.
@@ -198,8 +198,9 @@ NS_SWIFT_NAME(RemoteConfig)
198
198
// / To stop the periodic sync, developers need to call `[FIRInstallations deleteWithCompletion:]`
199
199
// / and avoid calling this method again.
200
200
// /
201
- // / @param completionHandler Fetch operation callback.
202
- - (void )fetchWithCompletionHandler:(nullable FIRRemoteConfigFetchCompletion)completionHandler;
201
+ // / @param completionHandler Fetch operation callback with status and error parameters.
202
+ - (void )fetchWithCompletionHandler:(void (^_Nullable)(FIRRemoteConfigFetchStatus status,
203
+ NSError *_Nullable error))completionHandler;
203
204
204
205
// / Fetches Remote Config data and sets a duration that specifies how long config data lasts.
205
206
// / Call activateFetched to make fetched data available to your app.
@@ -213,9 +214,10 @@ NS_SWIFT_NAME(RemoteConfig)
213
214
// / @param expirationDuration Override the (default or optionally set minimumFetchInterval property
214
215
// / in FIRRemoteConfigSettings) minimumFetchInterval for only the current request, in seconds.
215
216
// / Setting a value of 0 seconds will force a fetch to the backend.
216
- // / @param completionHandler Fetch operation callback.
217
+ // / @param completionHandler Fetch operation callback with status and error parameters .
217
218
- (void )fetchWithExpirationDuration:(NSTimeInterval )expirationDuration
218
- completionHandler:(nullable FIRRemoteConfigFetchCompletion)completionHandler;
219
+ completionHandler:(void (^_Nullable)(FIRRemoteConfigFetchStatus status,
220
+ NSError *_Nullable error))completionHandler;
219
221
220
222
// / Fetches Remote Config data and if successful, activates fetched data. Optional completion
221
223
// / handler callback is invoked after the attempted activation of data, if the fetch call succeeded.
@@ -226,9 +228,10 @@ NS_SWIFT_NAME(RemoteConfig)
226
228
// / To stop the periodic sync, developers need to call `[FIRInstallations deleteWithCompletion:]`
227
229
// / and avoid calling this method again.
228
230
// /
229
- // / @param completionHandler Fetch operation callback.
231
+ // / @param completionHandler Fetch operation callback with status and error parameters .
230
232
- (void )fetchAndActivateWithCompletionHandler:
231
- (nullable FIRRemoteConfigFetchAndActivateCompletion)completionHandler;
233
+ (void (^_Nullable)(FIRRemoteConfigFetchAndActivateStatus status,
234
+ NSError *_Nullable error))completionHandler;
232
235
233
236
#pragma mark - Apply
234
237
0 commit comments