Skip to content
Snippets Groups Projects
user avatar
MickeyMoz authored
a067ceee
History

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

AbstractFetchDownloadService

abstract class AbstractFetchDownloadService (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>?
onDestroy open fun onDestroy(): Unit
onStartCommand open fun onStartCommand(intent: <ERROR CLASS>?, flags: Int, startId: Int): Int

Companion Object Properties

Name Summary
ACTION_CANCEL const val ACTION_CANCEL: String
ACTION_OPEN const val ACTION_OPEN: String
ACTION_PAUSE const val ACTION_PAUSE: String
ACTION_RESUME const val ACTION_RESUME: String
ACTION_TRY_AGAIN const val ACTION_TRY_AGAIN: String

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.