<!--
{
  "availability" : [
    "iOS: 26.1.0 - 27.0.0",
    "iPadOS: 26.1.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHBackgroundResourceUploadExtension/notifyTermination()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "s:6Photos35PHBackgroundResourceUploadExtensionP17notifyTerminationyyF"
  },
  "title" : "notifyTermination()"
}
-->

# notifyTermination()

This notification will be called if the host is going to suspend/terminate the current execution. Extension clients should
use this to stop the current execution. When the extension is activated, a new call will be presented by the host.

```
func notifyTermination()
```

---

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)