---
title: notifyTermination()
framework: photos
role: symbol
role_heading: Instance Method
path: photos/phbackgroundresourceuploadextension/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.

## Declaration

```swift
func notifyTermination()
```
