StoreSelectorStep
open class StoreSelectorStep : OnboardingStep
Use this class to wrap an OnboardingStep instance for custom credential store “injection”.
You can create STORE - ID associations in the OnbordingContext, the flow controller will inject the store with the matching ID to the credentialStore property for this step to use.
-
The step wrapped into this instance.
Declaration
Swift
public let step: OnboardingStep -
The credential store ID associated with this instance.
Declaration
Swift
public let credentialStoreID: CredentialStoreID -
Creates the instance.
Declaration
Swift
public init(step: OnboardingStep, credentialStoreID: CredentialStoreID)Parameters
stepThe step that will use a custom store.
credentialStoreIDThe ID from the STORE - ID associations in the
OnboardingContext.
-
Declaration
Swift
public func onboard(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void) -
Declaration
Swift
public func restore(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void) -
Declaration
Swift
public func resetPasscode(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void) -
Declaration
Swift
public func reset(context: OnboardingContext, completionHandler: @escaping () -> Void) -
Called when the wrapped step fails. Delegates to the wrapped step’s
handleErrorimplementation, allowing its resolution to be honoured by the flow controller.Declaration
Swift
open func handleError(_ error: Error) -> OnboardingStepErrorResolutionParameters
errorThe error produced by the wrapped step.
Return Value
The resolution returned by the wrapped step’s
handleError.