# Package com.codename1.background

package com.codename1.background
Background fetch is a mechanism whereby an application is granted permission by the operating system to update its data periodically. At times of the native platform's choosing, an app that supports background fetch will be started up (in the background), and its `com.codename1.util.Callback)` method will be called.

- Class
  Description
  BackgroundFetch
  An interface that can be implemented by an app's main class to support background fetch.
  BackgroundTask
  Schedules a one-shot deferrable processing task that the operating system runs at a convenient time after an earliest-begin date.
  BackgroundWork
  Entry point for scheduling constraint-aware background work.
  BackgroundWorker
  Implemented by an application class to perform constraint-aware background work scheduled through `BackgroundWork#schedule(WorkRequest)`.
  ForegroundService
  Runs a long lived task while a persistent system notification is shown to the user.
  ForegroundService.Task
  The long running task executed by a foreground service.
  WorkRequest
  Describes a unit of constraint-aware background work to be scheduled with `BackgroundWork#schedule(WorkRequest)`.
  WorkRequest.Builder
  Builder for `WorkRequest`.