Service Layer low complexity mobile
1
Dependencies
1
Dependents
4
Entities
0
Integrations

Description

Business logic layer managing reading, writing, and synchronizing user settings. Persists preferences locally via the Settings Store and syncs backend-relevant settings (notification preferences, language) to the REST API asynchronously. Coordinates with Biometric Auth Service when the biometric toggle is changed.

Feature: App Settings & Preferences

settings-service

Responsibilities

  • Read and write user preferences to local storage and sync relevant changes to the backend
  • Coordinate biometric toggle changes with the Biometric Auth Service and Secure Token Store
  • Drive the localization provider when language selection changes
  • Validate setting values before persistence
  • Handle sign-out flow including token clearing and navigation reset

Interfaces

getSettings()
updateSetting(key, value)
syncSettingsToBackend()
toggleBiometricLogin(enabled)
setLanguage(locale)
getAvailableLanguages()
signOut()
requestAccountDeletion()
getNotificationPreferences()
updateNotificationPreferences(prefs)

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component