PersonalDataFactory
The factory for creating instances of PersonalData, UserSettingsProvider, and ItineraryProposalsProvider.
This factory ensures that only one instance of a provider is created per storage directory. If an instance already exists for a given directory, it will be reused.
It also manages both online (cloud-synchronized) and offline (local-only) versions of the providers, depending on the configuration provided during creation.
Functions
Link copied to clipboard
fun create(context: Context, storageDir: File, configuration: OnlinePersonalDataConfiguration? = null): PersonalData
Creates an instance of PersonalData that stores data in the specified directory and optionally synchronizes personal data online across devices.