Array
extension Array where Element: ENTemporaryExposureKey
extension Array where Element == SAP_RiskScoreClass
extension Array where Element == TracingStatusEntry
-
Prepare an array of
ENTemporaryExposureKey
for exposure submission.Declaration
Swift
func processedForSubmission(with symptomsOnset: SymptomsOnset, today: Date = Date()) -> [SAP_TemporaryExposureKey]
-
Undocumented
Declaration
Swift
var low: SAP_RiskScoreClass? { get }
-
Undocumented
Declaration
Swift
var high: SAP_RiskScoreClass? { get }
-
Undocumented
Declaration
Swift
static func from(data: Data) throws -> TracingStatusHistory
-
Undocumented
Declaration
Swift
func JSONData() throws -> Data
-
Undocumented
Declaration
Swift
func consumingState(_ state: ExposureManagerState, _ date: Date = Date()) -> TracingStatusHistory
-
Check the
TracingStatusHistory
if it has been turned on fortimeInterval
secondsTypically used to check the tracing duration precondition for risk calculation
Declaration
Swift
func checkIfEnabled( for continuousInterval: TimeInterval = Self.minimumActiveSeconds, since date: Date = Date() ) -> Bool
Parameters
timeInterval
Seconds to use as the threshold. Defaults to 24 hours.
date
Date to use as the baseline. Defaults to
Date()
-
Mark returns the active tracing info.
Declaration
Swift
func activeTracing( since date: Date = Date(), maximumNumberOfDays: Int = Self.maxStoredDays ) -> ActiveTracing
Parameters
since
Date to use as the baseline. Defaults to
Date()
maximumNumberOfDays
Maximum number of days we keep in the history.
-
The minimum count of hours tracing must have been active for risk calculation to work
Declaration
Swift
static let minimumActiveHours: Int
-
The minimum count of seconds tracing must have been active for risk calculation to work
Declaration
Swift
static var minimumActiveSeconds: TimeInterval { get }
-
The maximum count of days to keep tracing history for
Declaration
Swift
static let maxStoredDays: Int
-
The maximum count of seconds to keep tracing history for
Declaration
Swift
static var maxStoredSeconds: TimeInterval { get }