RiskCalculation
enum RiskCalculation
Undocumented
-
Minimum duration (in hours) that tracing has to be active for in order to perform a valid risk calculation
Declaration
Swift
static let minTracingActiveHours: Int
-
Count of days until a previously calculated exposure detection is considered outdated
Declaration
Swift
static let exposureDetectionStaleThreshold: Int
-
Performs the raw risk calculation without checking any preconditions
Declaration
Swift
static func calculateRawRisk( summary: CodableExposureDetectionSummary, configuration: SAP_ApplicationConfiguration ) -> Double
Return Value
weighted risk score
-
risk(summary:
configuration: dateLastExposureDetection: activeTracing: preconditions: previousRiskLevel: providerConfiguration: ) Undocumented
Declaration
Swift
static func risk( summary: CodableExposureDetectionSummary?, configuration: SAP_ApplicationConfiguration, dateLastExposureDetection: Date?, activeTracing: ActiveTracing, preconditions: ExposureManagerState, previousRiskLevel: EitherLowOrIncreasedRiskLevel?, providerConfiguration: RiskProvidingConfiguration ) -> Risk?