DownloadableModelLocalDataSource
internal class DownloadableModelLocalDataSource(val dao: LocalModelDao, val preferenceManager: PreferenceManager, val buildInfoProvider: BuildInfoProvider, val fileStore: DownloadableModelFileStore) : DownloadableModelDataSource.Local(source)
Coordinates DownloadableModelLocalDataSource behavior in the SDAI data layer.
Author
Dmitriy Moroz
Throws
when the delegated operation cannot complete.
Constructors
Link copied to clipboard
constructor(dao: LocalModelDao, preferenceManager: PreferenceManager, buildInfoProvider: BuildInfoProvider, fileStore: DownloadableModelFileStore)
Properties
Link copied to clipboard
Exposes the buildInfoProvider value used by the SDAI data layer.
Link copied to clipboard
Exposes the dao value used by the SDAI data layer.
Link copied to clipboard
Exposes the fileStore value used by the SDAI data layer.
Link copied to clipboard
Exposes the preferenceManager value used by the SDAI data layer.
Functions
Link copied to clipboard
Loads SDAI data through getAllMediaPipe.
Link copied to clipboard
Loads SDAI data through getAllOnnx.
Link copied to clipboard
Loads SDAI data through getById.
Link copied to clipboard
Loads SDAI data through getSelectedOnnx.
Link copied to clipboard
Loads SDAI data through observeAllOnnx.
Link copied to clipboard
Performs the SDAI side effect handled by save.
Link copied to clipboard
Executes the withLocalData step in the SDAI data layer.