> ## 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.

# XGameUiSetUiCallbacks

> XGameUiSetUiCallbacks

# XGameUiSetUiCallbacks

Sets the UI callbacks defined by the developer.

## Syntax

```cpp theme={null}
STDAPI  XGameUiSetUiCallbacks(
    const XGameUiUiCallbacks* callbacks,
    bool useSystemUiIfAvailable
) noexcept;
```

### Parameters

*callbacks*\
Type: const XGameUiUiCallbacks\*

Pointer to the struct containing the handlers and contexts for each UI the developer would like to handle.

*useSystemUiIfAvailable*\
Type: bool

Whether system UI should be used instead of developer callbacks if available.

### Return value

Type: STDAPI

## Remarks

All callbacks are set at the same time and override whatever ones may have been previously set.

## Requirements

**Header:** XGameUi.h

**Supported platforms:** Supported only on Steam Deck

## See also

[XGameUI](/reference/system/xgameui/xgameui_members)\
[XGameUiUiCallbacks](/reference/system/xgameui/structs/xgameuiuicallbacks)


## Related topics

- [XGameUiUiCallbacks](/reference/system/xgameui/structs/xgameuiuicallbacks.md)
- [XGameUiShowAchievementsUiCallback](/reference/system/xgameui/functions/xgameuishowachievementsuicallback.md)
- [XGameUiShowTextEntryUiCallback](/reference/system/xgameui/functions/xgameuishowtextentryuicallback.md)
- [XGameUiShowPlayerPickerUiCallback](/reference/system/xgameui/functions/xgameuishowplayerpickeruicallback.md)
- [XGameUiShowErrorDialogUiCallback](/reference/system/xgameui/functions/xgameuishowerrordialoguicallback.md)
