Array
extension Array where Element: ENTemporaryExposureKey
extension Array where Element == SAP_RiskScoreClass
extension Array where Element == TracingStatusEntry
-
Prepare an array of
ENTemporaryExposureKeyfor 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
TracingStatusHistoryif it has been turned on fortimeIntervalsecondsTypically used to check the tracing duration precondition for risk calculation
Declaration
Swift
func checkIfEnabled( for continuousInterval: TimeInterval = Self.minimumActiveSeconds, since date: Date = Date() ) -> BoolParameters
timeIntervalSeconds to use as the threshold. Defaults to 24 hours.
dateDate 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 ) -> ActiveTracingParameters
sinceDate to use as the baseline. Defaults to
Date()maximumNumberOfDaysMaximum 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 }