UserDataStore
public protocol UserDataStore : AnyObject
Interface to access user specific data sourcery: StreamWrapped
-
Publisher that returns if the onboarding screens should be displayed
Declaration
Swift
var hideOnboarding: AnyPublisher<Bool, Never> { get } -
Indicates if the onboarding screens should be displayed (alternative to publisher)
Declaration
Swift
var isOnboardingHidden: Bool { get } -
Publisher that returns the date when the onboarding was completed
Declaration
Swift
var onboardingDate: AnyPublisher<Date?, Never> { get } -
Set the onboardingDate The new value is published through
onboardingDateDeclaration
Swift
func set(onboardingDate: Date?)Parameters
onboardingDatethe current date when the function is called
-
Set the hideOnboarding The new value is published through
hideOnboardingDeclaration
Swift
func set(hideOnboarding: Bool)Parameters
hideOnboardingtrueif it should be hidden, otherwisefalse -
Indicates with which version the onboarding has been shown
Declaration
Swift
var onboardingVersion: AnyPublisher<String?, Never> { get } -
Set the app version in which onboarding has been presented The new value is published through
onboardingVersionDeclaration
Swift
func set(onboardingVersion: String?)Parameters
onboardingVersionapp version that was installed when onboarding has finished
-
Indicates if the card wall intro screen should be displayed
Declaration
Swift
var hideCardWallIntro: AnyPublisher<Bool, Never> { get } -
Set the hideCardWallIntro The new value is published through
hideCardWallIntroDeclaration
Swift
func set(hideCardWallIntro: Bool)Parameters
hideCardWallIntrotrueif it should be hidden, otherwisefalse
-
Server environment name to use. Only available in non production builds.
Declaration
Swift
func set(serverEnvironmentConfiguration: String?) -
Server environment name to use. Only available in non production builds.
Declaration
Swift
var serverEnvironmentConfiguration: AnyPublisher<String?, Never> { get } -
Get name for server environment configuration without publisher
Declaration
Swift
var serverEnvironmentName: String? { get }
-
The app security option
Declaration
Swift
var appSecurityOption: AnyPublisher<AppSecurityOption, Never> { get } -
Set the app security option The new value is published through
appSecurityOptionDeclaration
Swift
func set(appSecurityOption: AppSecurityOption)Parameters
appSecurityOptionThe option selected to secure the app
-
The current count of failed app authentications
Declaration
Swift
var failedAppAuthentications: AnyPublisher<Int, Never> { get } -
Set the count of failed app authentications during login
Declaration
Swift
func set(failedAppAuthentications: Int)Parameters
failedAppAuthenticationsnumber of failures
-
Whether the “your device is not secured” warning should be ignored permanently.
Declaration
Swift
var ignoreDeviceNotSecuredWarningPermanently: AnyPublisher<Bool, Never> { get } -
Set whether the “your device is not secured” warning should be ignored permanently.
Declaration
Swift
func set(ignoreDeviceNotSecuredWarningPermanently: Bool)Parameters
ignoreDeviceNotSecuredWarningForSessionignore the warning permanently
-
Declaration
Swift
var selectedProfileId: AnyPublisher<UUID?, Never> { get } -
Declaration
Swift
func set(selectedProfileId: UUID)
-
Declaration
Swift
var latestCompatibleModelVersion: ModelVersion { get set } -
Counter that is increased every time the app has been opened
Declaration
Swift
var appStartCounter: Int { get set } -
Deletes all data stored in the
UserDataStoreDeclaration
Swift
func wipeAll()
-
Publisher that returns all the ids from internal messages that already got displayed
Declaration
Swift
var readInternalCommunications: AnyPublisher<[String], Never> { get } -
Set the readInternalCommunications The new value is published through
readInternalCommunicationsDeclaration
Swift
func markInternalCommunicationAsRead(messageId: String)Parameters
messageIdid of an internal message that got displayed
-
Indicates if the internal communication welcome message should be displayed
Declaration
Swift
var hideWelcomeMessage: AnyPublisher<Bool, Never> { get } -
Set the hideWelcomeMessage The new value is published through
hideWelcomeMessageDeclaration
Swift
func set(hideWelcomeMessage: Bool)Parameters
hideWelcomeMessagetrueif it should be hidden, otherwisefalse
View on GitHub
UserDataStore Protocol Reference