OfflineStoreManager
Store manager can be used to persist data into an application specific private database.
Types
Link copied to clipboard
Any method attempting to call changeDownloadIdentifier must be annotated explicitly with this annotation.
Functions
Link copied to clipboard
open fun addDownloadRequests(requestSet: DownloadRequestSet, requests: Array<IDownloadManager.IRequest>): DownloadRequestSet
Creates a new blank download request set.
Link copied to clipboard
Changes the download identifier associated with given video.
Link copied to clipboard
Counts the download requests belonging to a DownloadRequestSet with the specified status code.
Link copied to clipboard
open fun createDownloadRequestSet(requestConfig: RequestConfig, estimatedSize: Long): DownloadRequestSet
Creates a new blank download request set.
Link copied to clipboard
Deletes the specified request set from the store.
Link copied to clipboard
Deletes the first offline video entity with the given video identifier.
Link copied to clipboard
Finds all offline video entities.
Finds all offline video entities with the specified status
Link copied to clipboard
Finds the current set of download request which are still being processed.
Link copied to clipboard
Finds the current set of download request set which are still being processed.
Link copied to clipboard
Finds a download request set with the specified unique key.
Link copied to clipboard
Finds the download request sets to which the given requests belong to.
Link copied to clipboard
Fetches a list of download requests that not have been queued for download by the android.app.
Link copied to clipboard
Finds the local URI of a remote asset that has been downloaded successfully.
Link copied to clipboard
Finds the first offline video entity with the given video identifier.
Link copied to clipboard
Gets reference to the single instance of OfflineStoreManager
Link copied to clipboard
Checks if the current set of download request are still being processed.
Link copied to clipboard
Checks if the DownloadRequestSet is completed.
Link copied to clipboard
Marks the specified request set for removal.
Link copied to clipboard
Marks a download request set as paused.
Link copied to clipboard
Refresh the given entity.
Link copied to clipboard
Marks a download request set as waiting to be queued.
Link copied to clipboard
Inserts or updates the given entity.
Link copied to clipboard
Updates the entity with given unique video identifier to save the video license information.
Link copied to clipboard
Updates the entity with given unique video identifier to save the video metadata object, while retaining the previously saved license information.
open fun saveOfflineVideo(video: Video, downloadDirectory: File, requestSet: DownloadRequestSet): OfflineVideo
Saves the offline video information into the store.
Link copied to clipboard
Converts the given list of OfflineVideo objects into a list of Video objects.
Link copied to clipboard
Sets the download identifier for the request with the specified primary key.
Link copied to clipboard
open fun updateDownloadRequestIdList(videoId: String, requestIdList: List<Long>, estimatedSize: Long): OfflineVideo
Updates the entity with given unique video identifier to save the current list of download request identifiers.
Link copied to clipboard
open fun updateDownloadRequestSetStatus(requestSet: DownloadRequestSet, statusCode: Int, reasonCode: Int, downloadRequest: DownloadRequest, evaluateAllSegments: Boolean): Boolean
Updates the status of Download Request Set.
Link copied to clipboard