OnboardingFlowProviding
public protocol OnboardingFlowProviding : AnyObject
Implementers should provide the proper flow. When different flows are supported then the implementer has to decide what kind of flow should be used. In case of restore and reset the OnboardingID helps to decide which flow was used during the onboard.
-
Provides a flow for the given onboarding controller
Declaration
Swift
func flow(for onboardingController: OnboardingControlling, flowType: OnboardingFlow.FlowType, completionHandler: @escaping (OnboardingFlow?, Error?) -> Void)
Parameters
onboardingController
target onboarding controller
flowType
type of the flow
completionHandler
closure called on completion