android-components / mozilla.components.feature.downloads / AbstractFetchDownloadService

AbstractFetchDownloadService

abstract class AbstractFetchDownloadService : CoroutineService (source)

Service that performs downloads through a fetch Client rather than through the native Android download manager.

To use this service, you must create a subclass in your application and it to the manifest.

Constructors

Name Summary
<init> AbstractFetchDownloadService()
Service that performs downloads through a fetch Client rather than through the native Android download manager.

Properties

Name Summary
httpClient abstract val httpClient: Client

Functions

Name Summary
onBind open fun onBind(intent: <ERROR CLASS>?): <ERROR CLASS>?
onCreate open fun onCreate(): Unit

Inherited Functions

Name Summary
onDestroy open fun onDestroy(): Unit
Stops all jobs when the service is destroyed.
onStartCommand fun onStartCommand(intent: <ERROR CLASS>?, flags: Int, startId: Int): Int
Starts a job using onStartCommand then stops the service once all jobs are complete.