MediaStore

interface MediaStore

Inheritors

Functions

Link copied to clipboard
abstract fun compact(): Boolean
Compacts the physical database file size by running the SQLite VACUUM statement.
Link copied to clipboard
abstract fun deleteEntity(entity: IdentifiableEntity): Boolean
Deletes an identifiable entity from the store.
Link copied to clipboard
abstract fun deleteOfflineVideo(videoId: String): Boolean
Deletes the first offline video entity with the given video identifier.
Link copied to clipboard
abstract fun findOfflineAssetUri(uri: Uri): Uri
Finds the local URI of a remote asset that has been downloaded successfully.
Link copied to clipboard
abstract fun <T : IdentifiableEntity?> findOfflineVideo(videoId: String): T
Finds the first offline video entity with the given video identifier.
Link copied to clipboard
abstract fun getFileSize(): Long
Gets the size of the backing database file.
Link copied to clipboard
abstract fun onCreated(version: Int)
Called when new EntityDataStore has been created.
Link copied to clipboard
abstract fun onUpgraded(oldVersion: Int, newVersion: Int)
Called when the EntityDataStore has been upgraded from an previous version to a new version.
Link copied to clipboard
abstract fun <E : IdentifiableEntity?> refreshEntity(entity: E): E
Refresh the given entity.
Link copied to clipboard
abstract fun <T : IdentifiableEntity?> saveEntity(entity: T): T
Inserts or updates the given entity.
Link copied to clipboard
abstract fun <T : IdentifiableEntity?> saveOfflineLicense(video: Video): T
Updates the entity with given unique video identifier to save the video license information.
Link copied to clipboard
abstract fun <T : IdentifiableEntity?> saveOfflineVideo(video: Video): T
Updates the entity with given unique video identifier to save the video metadata object, while retaining the previously saved license information.