PasscodePolicyApplyStep
open class PasscodePolicyApplyStep : OnboardingStep
Instantiates an OnboardingStep
capable of applying the PasscodePolicy
parameters in the onboard / restore flow.
If you wish to use this funcionality in manual mode, you can use this one-liner instead of this class:
let storeManager = StoreManager()
storeManager.applyNewPolicy(passcodePolicy)
-
Key to store the passcodePolicyApplyStatusKey in CredentialStore
Declaration
Swift
public let passcodePolicyApplyInProgress: String
-
defaultPasscodePolicy to apply on StoreManager instance, when applying the new passcodePolicy from the server If the defaultPasscodePolicy on
StoreManagerStep
is nil, this has to be nil also.Declaration
Swift
public var defaultPasscodePolicy: FUIPasscodePolicy?
-
The
OnboardingInfoKey
associated with an instance ofFUIPasscodePolicy
in theOnboardingContext
info.Declaration
Swift
public let passcodePolicyInfoKey: OnboardingInfoKey
-
The
OnboardingInfoKey
associated with an instance of previous context in theOnboardingContext
info.Declaration
Swift
public let previousSettingsInfoKey: OnboardingInfoKey
-
The ID of the created store. If this value is nil, then the onboardingID is used.
Declaration
Swift
public var storeID: UUID?
-
Instantiates an
OnboardingStep
capable of applying thePasscodePolicy
parameters in the onboard / restore flow.If you wish to use this funcionality in manual mode, you can use this one-liner instead of this class:
let storeManager = StoreManager() storeManager.applyNewPolicy(passcodePolicy)
Declaration
Swift
public init(passcodePolicyInfoKey: OnboardingInfoKey = .passcodePolicy, previousSettingsInfoKey: OnboardingInfoKey = .previousSettings)
Parameters
passcodePolicyInfoKey
the necessary
PasscodePolicy
must be present under this key in the OnboardingContext’s info objectpreviousSettingsInfoKey
for this key saved the step the previous
SAPcpmsSettings
-
Onboarding function with
OnboardingContext
supportDeclaration
Swift
public func onboard(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void)
Parameters
context
OnboardingContext
object which contains every information for the OnboardingStepcompletionHandler
called when the process finished. Step OnboardingResult filled.
-
Restore function with
OnboardingContext
supportDeclaration
Swift
public func restore(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void)
Parameters
context
OnboardingContext
object which contains every information for the OnboardingStepcompletionHandler
called when the process finished. Step OnboardingResult filled.
-
resetPasscode function with
OnboardingContext
supportDeclaration
Swift
open func resetPasscode(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void)
Parameters
context
completionHandler
called when the process finished. Step OnboardingResult filled.
-
Reset function with
OnboardingContext
supportDeclaration
Swift
public func reset(context: OnboardingContext, completionHandler: @escaping () -> Void)
Parameters
context
OnboardingContext
object which contains every information for the OnboardingStepcompletionHandler
called when the process finished.