<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplication/backgroundTimeRemaining",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIApplication(py)backgroundTimeRemaining"
  },
  "title" : "backgroundTimeRemaining"
}
-->

# backgroundTimeRemaining

The maximum amount of time remaining for the app to run in the background.

```
nonisolated var backgroundTimeRemaining: TimeInterval { get }
```

## Discussion

The value is valid only after the app enters the background and has started at least one task using [`beginBackgroundTask(expirationHandler:)`](/documentation/UIKit/UIApplication/beginBackgroundTask(expirationHandler:)) in the foreground.

System conditions may end background execution earlier, either by calling the expiration handler, or by terminating the app.

This method can be safely called on a non-main thread.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)