---
title: resignCurrent()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsuseractivity/resigncurrent()
---

# resignCurrent()

Marks this activity object as inactive without invalidating it.

## Declaration

```swift
func resignCurrent()
```

## Mentioned in

Supporting the creation of Quick Notes

## Discussion

Discussion Calling this method marks the user activity as no longer current, but doesn’t invalidate it entirely. You can call this method when you want to stop advertising the activity for continuation and search indexing only temporarily. You may call becomeCurrent() later to restore this object as the current activity.

## See Also

### Registering and invalidating activities

- [becomeCurrent()](foundation/nsuseractivity/becomecurrent().md)
- [invalidate()](foundation/nsuseractivity/invalidate().md)
- [needsSave](foundation/nsuseractivity/needssave.md)
- [deleteAllSavedUserActivities(completionHandler:)](foundation/nsuseractivity/deleteallsaveduseractivities(completionhandler:).md)
- [deleteSavedUserActivities(withPersistentIdentifiers:completionHandler:)](foundation/nsuseractivity/deletesaveduseractivities(withpersistentidentifiers:completionhandler:).md)
