AndroidDownloadableModelFileStore

Coordinates AndroidDownloadableModelFileStore behavior in the SDAI data layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(fileProviderDescriptor: FileProviderDescriptor)

Properties

Link copied to clipboard

Exposes the fileProviderDescriptor value used by the SDAI data layer.

Functions

Link copied to clipboard
open override fun delete(id: String)

Performs the SDAI side effect handled by delete.

Link copied to clipboard

Loads SDAI data through getLocalModelDirectory.

Link copied to clipboard
private fun getLocalModelFiles(id: String): List<File>

Loads SDAI data through getLocalModelFiles.

Link copied to clipboard
open override fun isDownloaded(model: LocalAiModel): Boolean

Executes the isDownloaded step in the SDAI data layer.