<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIBackgroundTaskIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UIBackgroundTaskIdentifier"
  },
  "title" : "UIBackgroundTaskIdentifier"
}
-->

# UIBackgroundTaskIdentifier

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

```
struct UIBackgroundTaskIdentifier
```

## Topics

### Identifier

[`UIBackgroundTaskInvalid`](/documentation/UIKit/UIBackgroundTaskIdentifier/invalid)

A token that indicates an invalid task request.

### Initializers

[`init(rawValue:)`](/documentation/UIKit/UIBackgroundTaskIdentifier/init(rawValue:))

Creates a new instance with the specified raw value.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)