Crate objc2_exposure_notification

Crate objc2_exposure_notification 

Source
Expand description

§Bindings to the ExposureNotification framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

ENActivityFlagsENManager
Activities that occurred while the app might not be running.
ENAuthorizationStatusENCommon
Indicates the status of authorization for the app.
ENCalibrationConfidenceENCommon
Confidence in calibration data.
ENDiagnosisReportTypeENCommon
How positive diagnosis was reported.
ENErrorCodeENCommon
Error codes used with ENErrorDomain.
ENExposureConfigurationENCommon
Configuration parameters for exposure detection.
ENExposureDaySummaryENCommon
Summary of exposure info for a single day.
ENExposureDetectionSummaryENCommon
Summary of exposure detection.
ENExposureInfoENCommon
Info about an exposure.
ENExposureSummaryItemENCommon
Summary for a specific time period or report type.
ENExposureWindowENCommon
A duration of up to 30 minutes during which beacons from a TEK were observed.
ENInfectiousnessENCommon
How infectious based on days since onset of symptoms.
ENManagerENManager
Manages Exposure Notification functionality.
ENScanInstanceENCommon
Aggregation of attenuations of all of this TEK’s beacons received during a scan.
ENStatusENManager
Overall status of Exposure Notification on the system.
ENTemporaryExposureKeyENCommon
Key used to generate rolling proximity identifiers.
ENVariantOfConcernTypeENCommon
Apple’s documentation

Constants§

ENAttenuationMaxENCommon
Apple’s documentation
ENAttenuationMinENCommon
Apple’s documentation
ENRiskLevelMaxENCommon
Apple’s documentation
ENRiskLevelMinENCommon
Apple’s documentation
ENRiskLevelValueMaxENCommon
Apple’s documentation
ENRiskLevelValueMinENCommon
Apple’s documentation
ENRiskScoreMaxENCommon
Apple’s documentation
ENRiskScoreMinENCommon
Apple’s documentation
ENRiskWeightDefaultENCommon
Apple’s documentation
ENRiskWeightDefaultV2ENCommon
Apple’s documentation
ENRiskWeightMaxENCommon
Apple’s documentation
ENRiskWeightMaxV2ENCommon
Apple’s documentation
ENRiskWeightMinENCommon
Apple’s documentation

Statics§

ENDaysSinceOnsetOfSymptomsUnknownDeprecatedENCommon
The value used when days since onset of symptoms is unspecified.
ENErrorDomainENCommon
NSError domain for Exposure Notification errors.

Type Aliases§

ENActivityHandlerENManager and block2
Invoked after the app is launched to report activities that occurred while the app might not be running.
ENAttenuationENCommon
Attenuation of a radio signal. This is the Advertised Transmit Power - Measured RSSI.
ENDetectExposuresHandlerENCommon and ENManager and block2
Invoked when detecting exposures completes. It provides a summary of exposures. If it completes successfully, summary will contain a summary of exposures and error will be nil. If it fails, summary will be nil and error indicates the reason it failed.
ENDiagnosisKeysAvailableHandlerENCommon and ENManager and block2
Apple’s documentation
ENErrorHandlerENCommon and block2
Invoked when an operation completes. Error is nil for success or non-nil if an error occurred.
ENErrorOutTypeENCommon
Type for returning NSError’s from functions. Avoids long and repetitious method signatures.
ENGetDiagnosisKeysHandlerENCommon and ENManager and block2
Invoked when getDiagnosisKeysWithCompletionHandler completes. If it completes successfully, keys will contain the Diagnosis Keys for this device and error will be nil. If it fails, keys will be nil and error indicates the reason it failed.
ENGetExposureInfoHandlerENCommon and ENManager and block2
Invoked when getting exposures completes. It provides info about each exposure. If it completes successfully, exposures will contain info about each exposure and error will be nil. If it fails, exposures will be nil and error indicates the reason it failed.
ENGetExposureWindowsHandlerENCommon and ENManager and block2
Invoked when getExposureWindows completes. It provides info about each exposure window. If it completes successfully, exposureWindows will non-nil and error will be nil. If it fails, exposureWindows will be nil and error indicates the reason it failed.
ENGetUserTraveledHandlerENManager and block2
Invoked when getUserTraveled completes.
ENIntervalNumberENCommon
ENIntervalNumber (ENIN)
ENRiskLevelENCommon
Represents a risk level, ranging from 0-7.
ENRiskLevelValueENCommon
The value, ranging from 0 to 8, that the app assigns to each Risk Level in each of the Risk Level Parameters.
ENRiskScoreENCommon
Represents estimated risk calculated by a scoring algorithm. Range is 0-255. 255 is the highest risk.