Contents

infectiousnessForDaysSinceOnsetOfSymptoms

The mapping between the days since onset of symptoms to the degree of infectiousness.

Declaration

var infectiousnessForDaysSinceOnsetOfSymptoms: [NSNumber : NSNumber]? { get set }

Discussion

The dictionary key is the day since the onset of symptoms. The corresponding value is an ENInfectiousness value. When the day is not known, use ENDaysSinceOnsetOfSymptomsUnknown as the dictionary key, like this:

infectiousnessForDaysSinceOnsetOfSymptoms[ENDaysSinceOnsetOfSymptionsUnknown] = 
        infectiousnessHighWeight;

You can’t change this property more often than once per week. During development, you can remove this limitation by adding the test entitlement com.apple.developer.exposure-notification-test to your project.

See Also

Configuring Infectiousness