RemoteConfigUpdate.swift 888 B

1234567891011121314151617181920212223
  1. import Foundation
  2. /// Represents the config update reported by the Remote Config real-time service.
  3. /// An instance of this class is passed to the config update listener when a new config
  4. /// version has been fetched from the backend.
  5. @objc(FIRRemoteConfigUpdate)
  6. public class RemoteConfigUpdate: NSObject {
  7. /// Set of parameter keys whose values have been updated from the currently activated values.
  8. /// This includes keys that are added, deleted, and whose value, value source, or metadata has changed.
  9. @objc public let updatedKeys: Set<String>
  10. /// Internal initializer.
  11. /// - Parameter updatedKeys: The set of keys that have been updated.
  12. internal init(updatedKeys: Set<String>) {
  13. self.updatedKeys = updatedKeys
  14. super.init()
  15. }
  16. /// Default initializer is unavailable.
  17. override private init() {
  18. fatalError("Default initializer is not available.")
  19. }
  20. }