Type-Definitions

The following type definitions are available globally.

  • Completion handler invoked by fetch methods when they get a response from the server.

    Declaration

    Swift

    typealias RemoteConfigFetchCompletion = (RemoteConfigFetchStatus, Error?) -> Void

    Parameters

    status

    Config fetching status.

    error

    Error message on failure.

  • Completion handler invoked by activate method upon completion.

    Declaration

    Swift

    typealias RemoteConfigActivateCompletion = (Error?) -> Void

    Parameters

    error

    Error message on failure. Nil if activation was successful.

  • Completion handler invoked upon completion of Remote Config initialization.

    Declaration

    Swift

    typealias RemoteConfigInitializationCompletion = (Error?) -> Void

    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

    Swift

    typealias RemoteConfigFetchAndActivateCompletion = (RemoteConfigFetchAndActivateStatus, Error?) -> Void

    Parameters

    status

    Config fetching status.

    error

    Error message on failure of config fetch