Contents

detectExposures(configuration:completionHandler:)

Detects exposures using the specified configuration to control the scoring algorithm.

Declaration

func detectExposures(configuration: ENExposureConfiguration, completionHandler: @escaping  ENDetectExposuresHandler) -> Progress

Parameters

  • configuration:

    The exposure configuration.

  • completionHandler:

    The completion handler that the framework calls when the method completes.

Return Value

The progress of the method.

Discussion

This method allows recalculating a new score using different configuration parameters. If you’ve previously called detectExposures(configuration:diagnosisKeyURLs:completionHandler:), any keys you submitted in the previous 14 days are cached. Only use this method if your app specifies an ENAPIVersion of 2 in its Info.plist file, because older versions did not cache keys.

See Also

Obtaining Exposure Information