Coordinator
class Coordinator : RequiresAppDependencies
extension Coordinator: HomeViewControllerDelegate
extension Coordinator: ExposureNotificationSettingViewControllerDelegate
extension Coordinator: ExposureDetectionViewControllerDelegate
extension Coordinator: ExposureSubmissionCoordinatorDelegate
extension Coordinator: SettingsViewControllerDelegate
extension Coordinator: ExposureStateUpdating
extension Coordinator: ENStateHandlerUpdating
The object for coordination of communication between first and second level view controllers, including navigation.
This class is the first point of contact for handling navigation inside the app.
It’s supposed to be insantiated from AppDelegate
or SceneDelegate
and handed over the root view controller.
It instantiates view controllers with dependencies and presents them.
Should be used as a delegate in view controllers that need to communicate with other view controllers, either for navigation, or something else (e.g. transfering state).
Helps to decouple different view controllers from each other and to remove navigation responsibility from view controllers.
-
Undocumented
Declaration
Swift
init(_ delegate: CoordinatorDelegate, _ rootViewController: UINavigationController)
-
Undocumented
Declaration
Swift
deinit
-
Undocumented
Declaration
Swift
func showHome(enStateHandler: ENStateHandler, state: SceneDelegate.State)
-
Undocumented
Declaration
Swift
func showOnboarding()
-
Undocumented
Declaration
Swift
func updateState(detectionMode: DetectionMode, exposureManagerState: ExposureManagerState, risk: Risk?)
-
Undocumented
Declaration
Swift
func showRiskLegend()
-
Undocumented
Declaration
Swift
func showExposureNotificationSetting(enState: ENStateHandler.State)
-
Undocumented
Declaration
Swift
func showExposureDetection(state: HomeInteractor.State, activityState: RiskProvider.ActivityState)
-
Undocumented
Declaration
Swift
func setExposureDetectionState(state: HomeInteractor.State, activityState: RiskProvider.ActivityState)
-
Undocumented
Declaration
Swift
func showExposureSubmission(with result: TestResult? = nil)
-
Undocumented
Declaration
Swift
func showInviteFriends()
-
Undocumented
Declaration
Swift
func showWebPage(from viewController: UIViewController, urlString: String)
-
Undocumented
Declaration
Swift
func showAppInformation()
-
Undocumented
Declaration
Swift
func showSettings(enState: ENStateHandler.State)
-
Undocumented
Declaration
Swift
func addToEnStateUpdateList(_ anyObject: AnyObject?)
-
Undocumented
Declaration
Swift
func exposureNotificationSettingViewController(_ controller: ExposureNotificationSettingViewController, setExposureManagerEnabled enabled: Bool, then completion: @escaping Completion)
-
Undocumented
Declaration
Swift
func exposureDetectionViewController( _: ExposureDetectionViewController, setExposureManagerEnabled enabled: Bool, completionHandler completion: @escaping (ExposureNotificationError?) -> Void )
-
Undocumented
Declaration
Swift
func exposureSubmissionCoordinatorWillDisappear(_ coordinator: ExposureSubmissionCoordinating)
-
Undocumented
Declaration
Swift
func settingsViewController(_ controller: SettingsViewController, setExposureManagerEnabled enabled: Bool, then completion: @escaping Completion)
-
Undocumented
Declaration
Swift
func settingsViewControllerUserDidRequestReset(_ controller: SettingsViewController)
-
Undocumented
Declaration
Swift
func updateExposureState(_ state: ExposureManagerState)
-
Undocumented
Declaration
Swift
func updateEnState(_ state: ENStateHandler.State)