> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFGameSaveFilesSetUiCallbacks

> Sets the UI callbacks. These UI callbacks will trigger during PFGameSaveFilesAddUserWithUiAsync() or PFGameSaveFilesUploadWithUiAsync(). PFGameSaveFilesAddUserWithUiAsync() may trigger any UI callback while PFGameSaveFilesUploadWithUiAsync() will only trigger PFGameSaveFilesUiProgressCallback and/or PFGameSaveFilesUiSyncFailedCallback. On non-Windows platforms, setting these callbacks is required to trigger game rendered UI dialogs. On XBOX and Windows platforms, file sync is done in out of process and stock UI is provided by the platform however the title can set these callbacks to render custom UI dialogs as desired.

Sets the UI callbacks. These UI callbacks will trigger during PFGameSaveFilesAddUserWithUiAsync() or PFGameSaveFilesUploadWithUiAsync(). PFGameSaveFilesAddUserWithUiAsync() may trigger any UI callback while PFGameSaveFilesUploadWithUiAsync() will only trigger PFGameSaveFilesUiProgressCallback and/or PFGameSaveFilesUiSyncFailedCallback. On non-Windows platforms, setting these callbacks is required to trigger game rendered UI dialogs. On XBOX and Windows platforms, file sync is done in out of process and stock UI is provided by the platform however the title can set these callbacks to render custom UI dialogs as desired.

## Syntax

```cpp theme={null}
HRESULT PFGameSaveFilesSetUiCallbacks(  
    PFGameSaveUICallbacks* callbacks  
)  
```

### Parameters

**`callbacks`**   [PFGameSaveUICallbacks\*](/services/playfab/api-references/c/pfgamesavefilesui/structs/pfgamesaveuicallbacks)

The callbacks to set.

### Return value

Type: HRESULT

TBD

## Requirements

**Header:** PFGameSaveFilesUi.h

## See also

[PFGameSaveFilesUi members](/services/playfab/api-references/c/pfgamesavefilesui/pfgamesavefilesui_members)
