---
title: finishSuspend()
framework: Paravirtualized Graphics
role: symbol
role_heading: Instance Method
platforms: [Mac Catalyst 14.0+, macOS 11.0+]
path: paravirtualizedgraphics/pgdevice/finishsuspend()
---

# finishSuspend()

Notifies the virtualized graphics device to finish suspending graphics activities.

## Declaration

```swift
func finishSuspend() -> Data?
```

## Return Value

Return Value The suspend state data, or nil if an error occurred.

## Discussion

Discussion This method may take an arbitrary amount of time as the device needs to complete any unfinished GPU work. After this call completes, you can’t perform any further operations on this device object and must release it. Typically, your app serializes the suspend state data to persistant storage. Pass the suspend state data to a new device object when you want to resume graphics operations.

## See Also

### Suspending and Resuming Graphics Processing

- [willSuspend()](paravirtualizedgraphics/pgdevice/willsuspend().md)
- [willResume(withSuspendState:error:)](paravirtualizedgraphics/pgdevice/willresume(withsuspendstate:error:).md)
- [didResume()](paravirtualizedgraphics/pgdevice/didresume().md)
- [PGResumeErrorDomain](paravirtualizedgraphics/pgresumeerrordomain.md)
- [PGResumeErrorCode](paravirtualizedgraphics/pgresumeerrorcode.md)
