OnboardingControllerDelegate
public protocol OnboardingControllerDelegate : AnyObject
Delegate methods called to track the status of an onboarding flow. Implementers can also modify the flow
-
onboardingController(_:willStart:completionHandler:)Default implementationDelegate method called when an
OnboardingFlowwill startDefault Implementation
Delegate method that indicates when the flow will start
Declaration
Swift
func onboardingController(_: OnboardingControlling, willStart: OnboardingFlow, completionHandler: @escaping (OnboardingFlow?, Error?) -> Void)Parameters
_OnboardingControllinginstancewillStartthe flow that will start
completionHandlerclosure called on completion
-
onboardingController(_:didComplete:completionHandler:)Default implementationDelegate method called when an
OnboardingFlowhas completedDefault Implementation
Delegate method that indicates when the flow has completed
Declaration
Swift
func onboardingController(_: OnboardingControlling, didComplete: OnboardingFlow, completionHandler: @escaping (OnboardingFlow?, Error?) -> Void)Parameters
_OnboardingControllinginstancedidCompletethe flow that completed
completionHandlerclosure called on completion
-
onboardingController(_:didFail:with:completionHandler:)Default implementationDelegate method called when an
OnboardingFlowhas failedDefault Implementation
Delegate method that indicates if the flow has completed with error
Declaration
Swift
func onboardingController(_: OnboardingControlling, didFail: OnboardingFlow, with: Error, completionHandler: @escaping (OnboardingErrorDisposition) -> Void)Parameters
_OnboardingControllinginstancedidFailthe flow that failed
withan error object that indicates the reason of failure
completionHandlerclosure called on completion