ENAExposureManager
final class ENAExposureManager : NSObject, ExposureManager
Wrapper for ENManager to avoid code duplication and to abstract error handling
-
Undocumented
Declaration
Swift
init( manager: Manager = ENManager() )
-
Undocumented
Declaration
Swift
func resume(observer: ENAExposureManagerObserver)
-
Activates
ENManager
Needs to be called beforeExposureManager.enable()
Declaration
Swift
func activate(completion: @escaping CompletionHandler)
-
Asks user for permission to enable ExposureNotification and enables it, if the user grants permission Expects the callee to invoke
ExposureManager.activate
prior to this function callDeclaration
Swift
func enable(completion: @escaping CompletionHandler)
-
Disables the ExposureNotification framework Expects the callee to invoke
ExposureManager.activate
prior to this function callDeclaration
Swift
func disable(completion: @escaping CompletionHandler)
-
Returns an instance of the OptionSet
Preconditions
Only ifPreconditions.all()
Declaration
Swift
func preconditions() -> ExposureManagerState
-
Wrapper for
ENManager.detectExposures
ExposureManager
needs to be activated and enabledDeclaration
Swift
func detectExposures(configuration: ENExposureConfiguration, diagnosisKeyURLs: [URL], completionHandler: @escaping ENDetectExposuresHandler) -> Progress
-
Undocumented
Declaration
Swift
func getTestDiagnosisKeys(completionHandler: @escaping ENGetDiagnosisKeysHandler)
-
Wrapper for
ENManager.getDiagnosisKeys
ExposureManager
needs to be activated and enabledDeclaration
Swift
func accessDiagnosisKeys(completionHandler: @escaping ENGetDiagnosisKeysHandler)
-
Invalidate the EnManager with completion handler
Declaration
Swift
func invalidate(handler: (() -> Void)?)
-
Reset the ExposureManager
Declaration
Swift
func reset(handler: (() -> Void)?)
-
Undocumented
Declaration
Swift
deinit
-
Undocumented
Declaration
Swift
func requestUserNotificationsPermissions(completionHandler: @escaping (() -> Void))
-
Undocumented
Declaration
Swift
func alertForBluetoothOff(completion: @escaping () -> Void) -> UIAlertController?