SingleUserOnboardingIDManager
open class SingleUserOnboardingIDManager : OnboardingIDManaging
Onboarding ID Store for a single user
-
The deafult key for storing the OnboardingID
Declaration
Swift
public static let defaultStoringKey: String
-
The key for storing the OnboardingID
Declaration
Swift
public let storingKey: String
-
Boolean to decide background mode
Declaration
Swift
public var backgroundMode: Bool { get set }
-
The key for the Onboarding ID value
Declaration
Swift
public init(storingKey: String = SingleUserOnboardingIDManager.defaultStoringKey, backgroundMode: Bool = false)
Parameters
storingKey
The onboarding ID will be stored under this key
-
Decies whether the onboarding or restoring operation should be performed
Declaration
Swift
public func flowToStart(completionHandler: @escaping (OnboardingFlow.FlowType) -> Void)
Parameters
completionHandler
closure called on completion
-
Stores the given Onboarding ID
Declaration
Swift
public func store(onboardingID: UUID, completionHandler: @escaping (Error?) -> Void)
Parameters
onboardingID
the Onboarding ID to store
completionHandler
closure called on completion
-
Removes the given Onboarding ID
Declaration
Swift
public func remove(onboardingID: UUID, completionHandler: () -> Void)
Parameters
onboardingID
the Onboarding ID to remove
completionHandler
closure called on completion