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
StoreManagerStepis nil, this has to be nil also.Declaration
Swift
public var defaultPasscodePolicy: FUIPasscodePolicy? -
The
OnboardingInfoKeyassociated with an instance ofFUIPasscodePolicyin theOnboardingContextinfo.Declaration
Swift
public let passcodePolicyInfoKey: OnboardingInfoKey -
The
OnboardingInfoKeyassociated with an instance of previous context in theOnboardingContextinfo.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
OnboardingStepcapable of applying thePasscodePolicyparameters 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
passcodePolicyInfoKeythe necessary
PasscodePolicymust be present under this key in the OnboardingContext’s info objectpreviousSettingsInfoKeyfor this key saved the step the previous
SAPcpmsSettings -
Onboarding function with
OnboardingContextsupportDeclaration
Swift
public func onboard(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void)Parameters
contextOnboardingContextobject which contains every information for the OnboardingStepcompletionHandlercalled when the process finished. Step OnboardingResult filled.
-
Restore function with
OnboardingContextsupportDeclaration
Swift
public func restore(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void)Parameters
contextOnboardingContextobject which contains every information for the OnboardingStepcompletionHandlercalled when the process finished. Step OnboardingResult filled.
-
resetPasscode function with
OnboardingContextsupportDeclaration
Swift
open func resetPasscode(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void)Parameters
contextcompletionHandlercalled when the process finished. Step OnboardingResult filled.
-
Reset function with
OnboardingContextsupportDeclaration
Swift
public func reset(context: OnboardingContext, completionHandler: @escaping () -> Void)Parameters
contextOnboardingContextobject which contains every information for the OnboardingStepcompletionHandlercalled when the process finished.