---
title: "triggerPendingUpload(completionHandler:)"
framework: GameSave
role: symbol
role_heading: Instance Method
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+, macOS 26.0+, visionOS 26.0+]
path: "gamesave/gssynceddirectory/triggerpendingupload(completionhandler:)"
---

# triggerPendingUpload(completionHandler:)

Triggers an upload of the directory for any changes that were pending.

## Declaration

```swift
func triggerPendingUpload(completionHandler completion: @escaping @Sendable (Bool) -> Void)
```

```swift
func triggerPendingUpload() async -> Bool
```

## Discussion

Discussion Calls the completion block with YES if there were pending uploads; otherwise with NO.

## See Also

### Finishing with a directory

- [close()](gamesave/gssynceddirectory/close().md)
