AppDelegate
@UIApplicationMain
class AppDelegate : UIResponder, UIApplicationDelegate
extension AppDelegate: ENATaskExecutionDelegate
extension AppDelegate: CoronaWarnAppDelegate
extension AppDelegate: ExposureSummaryProvider
Undocumented
-
Undocumented
Declaration
Swift
let store: Store & AppConfigCaching
-
Undocumented
Declaration
Swift
let serverEnvironment: ServerEnvironment
-
Undocumented
Declaration
Swift
let taskScheduler: ENATaskScheduler
-
Undocumented
Declaration
Swift
lazy var appConfigurationProvider: AppConfigurationProviding { get set }
-
Undocumented
Declaration
Swift
lazy var riskProvider: RiskProvider { get set }
-
-
Undocumented
Declaration
Swift
let exposureManager: ExposureManager
-
Undocumented
Declaration
Swift
let downloadedPackagesStore: DownloadedPackagesStore
-
Undocumented
Declaration
Swift
let client: HTTPClient
-
Undocumented
Declaration
Swift
override init()
-
Undocumented
Declaration
Swift
func application( _: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil ) -> Bool
-
Undocumented
Declaration
Swift
func application( _: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options _: UIScene.ConnectionOptions ) -> UISceneConfiguration
-
Undocumented
Declaration
Swift
func application(_: UIApplication, didDiscardSceneSessions _: Set<UISceneSession>)
-
This method executes the background tasks needed for fetching test results, performing exposure detection and executing plausible deniability fake requests.
Note
The method explicitly ignores the outcomes of all subtasks (success/failure) and will always call completion(true) when the subtasks finished regardless of their individual results. This will set the background task state to completed. We only mark the task as incomplete when the OS calls the expiration handler before all tasks were able to finish.Declaration
Swift
func executeENABackgroundTask(completion: @escaping ((Bool) -> Void))
-
Trigger a fake playbook to enable plausible deniability.
Declaration
Swift
func executeFakeRequests(_ completion: (() -> Void)? = nil)
-
Randomly execute a fake request
Declaration
Swift
@discardableResult func executeFakeRequestOnAppLaunch(probability p: Double) -> Bool
Parameters
propability
the probability p to execute a fake request. Accepting values between 0 and 1.
Return Value
Bool to indicate wether the fake request has been sent
-
Undocumented
Declaration
Swift
func detectExposure( appConfiguration: SAP_ApplicationConfiguration, activityStateDelegate: ActivityStateProviderDelegate? = nil, completion: @escaping (ENExposureDetectionSummary?) -> Void ) -> CancellationToken