OfflineDownloadService

Holds the host process at foreground importance while offline downloads are in flight, so that the platform does not treat them as cached work and revoke their network access.

DownloadManager owns the lifecycle and starts or stops this service as download work appears and drains.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun onBind(intent: <Error class: unknown class>?): <Error class: unknown class>?
Link copied to clipboard
open fun onStartCommand(intent: <Error class: unknown class>?, flags: Int, startId: Int): Int
Link copied to clipboard
open fun onTimeout(startId: Int, fgsType: Int)

Android 15 limits how long a data sync service may run. The requests stay queued, so they resume the next time the host application is in the foreground.