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

# 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](https://docs.xbox.com/reference/system/xgameui/xgameui_members.md)\
[XGameUiUiCallbacks](https://docs.xbox.com/reference/system/xgameui/structs/xgameuiuicallbacks.md)


## Related topics

- [XGameUiUiCallbacks](https://docs.xbox.com/reference/system/xgameui/structs/xgameuiuicallbacks.md)
- [XGameUiShowAchievementsUiCallback](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowachievementsuicallback.md)
- [XGameUiShowPlayerPickerUiCallback](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowplayerpickeruicallback.md)
- [XGameUiShowErrorDialogUiCallback](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowerrordialoguicallback.md)
- [XGameUiShowMessageDialogUiCallback](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowmessagedialoguicallback.md)
