RemoteSettingsServiceProtocol

public protocol RemoteSettingsServiceProtocol : AnyObject

Application-level Remote Settings manager.

This handles application-level operations, like syncing all the collections, and acts as a factory for creating clients.

  • Create a new Remote Settings client

    Declaration

    Swift

    func makeClient(collectionName: String, appContext: RemoteSettingsContext?) throws -> RemoteSettingsClient
  • Sync collections for all active clients

    Declaration

    Swift

    func sync() throws -> [String]
  • Update the remote settings config

    This will cause all current and future clients to use new config and will delete any stored records causing the clients to return new results from the new config.

    Only intended for QA/debugging. Swapping the remote settings server in the middle of execution can cause weird effects.

    Declaration

    Swift

    func updateConfig(config: RemoteSettingsConfig2) throws