---
title: UIBackgroundTaskIdentifier
framework: uikit
role: symbol
role_heading: Structure
path: uikit/uibackgroundtaskidentifier
---

# UIBackgroundTaskIdentifier

A unique token that identifies a request to run in the background.

## Declaration

```swift
struct UIBackgroundTaskIdentifier
```

## Topics

### Identifier

- [invalid](uikit/uibackgroundtaskidentifier/invalid.md)

### Initializers

- [init(rawValue:)](uikit/uibackgroundtaskidentifier/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## 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)
- [backgroundTimeRemaining](uikit/uiapplication/backgroundtimeremaining.md)
