AndroidDownloadableModelFileStore

Coordinates AndroidDownloadableModelFileStore behavior in the SDAI data layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(fileProviderDescriptor: FileProviderDescriptor)

Types

Link copied to clipboard
private object Companion

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.

Link copied to clipboard
open override fun resolvePath(model: LocalAiModel): String

Loads SDAI data through resolvePath.

Link copied to clipboard
open override fun resolveSingleFilePath(path: String): String

Loads SDAI data through resolveSingleFilePath.