CoreMediaStoreRepository

internal abstract class CoreMediaStoreRepository(val preferenceManager: PreferenceManager, val mediaStoreGateway: MediaStoreGateway)(source)

Coordinates CoreMediaStoreRepository behavior in the SDAI data layer.

Author

Dmitriy Moroz

Inheritors

Constructors

Link copied to clipboard
constructor(preferenceManager: PreferenceManager, mediaStoreGateway: MediaStoreGateway)

Properties

Link copied to clipboard

Exposes the mediaStoreGateway 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
private fun exportAsync(result: AiGenerationResult)

Executes the exportAsync step in the SDAI data layer.

Link copied to clipboard
protected suspend fun exportToMediaStoreAsync(result: AiGenerationResult)

Executes the exportToMediaStoreAsync step in the SDAI data layer.

Link copied to clipboard
protected suspend fun getInfoAsync(): MediaStoreInfo

Loads SDAI data through getInfoAsync.