<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHBackgroundResourceUploadJobExtension",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "s:6Photos38PHBackgroundResourceUploadJobExtensionP"
  },
  "title" : "PHBackgroundResourceUploadJobExtension"
}
-->

# PHBackgroundResourceUploadJobExtension

A protocol to interact with asset resource upload jobs during background processing.

```
protocol PHBackgroundResourceUploadJobExtension : AppExtension
```

## Overview

Use this protocol to create, acknowledge, retry asset resource upload jobs.

## Topics

### Instance Methods

[`func processJobs() async -> PHBackgroundResourceUploadProcessingResult`](/documentation/Photos/PHBackgroundResourceUploadJobExtension/processJobs())

Request to initiate processing background upload jobs.

[`func willTerminate() async`](/documentation/Photos/PHBackgroundResourceUploadJobExtension/willTerminate())

Called by the host before suspending or terminating the extension process. Extension clients should use this to
stop any in-progress work. When the extension is activated again, a new call will be made by the host.

## Relationships

### Inherits From

[`AppExtension`](/documentation/ExtensionFoundation/AppExtension)

---

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)