---
title: backgroundTimeRemaining
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiapplication/backgroundtimeremaining
---

# backgroundTimeRemaining

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

## Declaration

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

## Mentioned in

Extending your app’s background execution time

## Discussion

Discussion The value is valid only after the app enters the background and has started at least one task using 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.

## See Also

### Managing background tasks

- [backgroundRefreshStatus](uikit/uiapplication/backgroundrefreshstatus.md)
- [UIBackgroundRefreshStatus](uikit/uibackgroundrefreshstatus.md)
- [backgroundRefreshStatusDidChangeNotification](uikit/uiapplication/backgroundrefreshstatusdidchangenotification.md)
- [beginBackgroundTask(withName:expirationHandler:)](uikit/uiapplication/beginbackgroundtask(withname:expirationhandler:).md)
- [beginBackgroundTask(expirationHandler:)](uikit/uiapplication/beginbackgroundtask(expirationhandler:).md)
- [endBackgroundTask(_:)](uikit/uiapplication/endbackgroundtask(_:).md)
- [UIBackgroundTaskIdentifier](uikit/uibackgroundtaskidentifier.md)
