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
step
The step that will use a custom store.
credentialStoreID
The 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)