InternalSdkStatsCfgFetchFn: ((cfgUrl: string, oncomplete: ((result: IInternalSdkStatsCfgResult | null) => void)) => void)

The signature of the function used to fetch (and parse) the remote SDK Stats configuration. It is primarily used to allow the fetch implementation to be overridden (for testing or advanced scenarios) via IInternalSdkStatsConfig.overrideCfgFn.

Type declaration

    • (cfgUrl, oncomplete): void
    • Parameters

      • cfgUrl: string

        The SDK Stats configuration URL (cfg/v1.json) to fetch.

      • oncomplete: ((result: IInternalSdkStatsCfgResult | null) => void)

        The callback to invoke with the parsed configuration, or null on any failure.

      Returns void

3.4.4