Type Definitions
The following type definitions are available globally.
-
Completion handler invoked by fetch methods when they get a response from the server.
Declaration
Objective-C
typedef void (^FIRRemoteConfigFetchCompletion)(FIRRemoteConfigFetchStatus, NSError *_Nullable)
Parameters
status
Config fetching status.
error
Error message on failure.
-
Completion handler invoked by activate method upon completion.
Declaration
Objective-C
typedef void (^FIRRemoteConfigActivateCompletion)(NSError *_Nullable)
Parameters
error
Error message on failure. Nil if activation was successful.
-
Completion handler invoked upon completion of Remote Config initialization.
Declaration
Objective-C
typedef void (^FIRRemoteConfigInitializationCompletion)(NSError *_Nullable)
Parameters
initializationError
nil if initialization succeeded.
-
Completion handler invoked by the fetchAndActivate method. Used to convey status of fetch and, if successful, resultant activate call
Declaration
Objective-C
typedef void (^FIRRemoteConfigFetchAndActivateCompletion)( FIRRemoteConfigFetchAndActivateStatus, NSError *_Nullable)
Parameters
status
Config fetching status.
error
Error message on failure of config fetch
-
Completion handler invoked by
addOnConfigUpdateListener
when there is an update to the config from the backend.Declaration
Objective-C
typedef void (^FIRRemoteConfigUpdateCompletion)( FIRRemoteConfigUpdate *_Nullable, NSError *_Nullable)
Parameters
configUpdate
An instance of
FIRRemoteConfigUpdate
that contains information on which key’s values have changed.error
Error message on failure.