Resource Params Based Download Work Manager
class ResourceParamsBasedDownloadWorkManager(syncParams: ResourceSearchParams) : DownloadWorkManager
Content copied to clipboard
DownloadWorkManager implementation based on the provided ResourceSearchParams to generate Resource search queries and parse Bundle.BundleType.SEARCHSET type Bundle. This implementation takes a DFS approach and downloads all available resources for a particular ResourceType before moving on to the next ResourceType.
Constructors
ResourceParamsBasedDownloadWorkManager
Link copied to clipboard
fun ResourceParamsBasedDownloadWorkManager(syncParams: ResourceSearchParams)
Content copied to clipboard
Functions
getNextRequestUrl
Link copied to clipboard
open suspend override fun getNextRequestUrl(context: SyncDownloadContext): String?
Content copied to clipboard
processResponse
Link copied to clipboard
open suspend override fun processResponse(response: Resource): Collection<Resource>
Content copied to clipboard
Sources
androidJvm source
Link copied to clipboard