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

設定開發人員定義的 UI 回呼。

## 語法

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

### 參數

*callbacks*\
類型：const XGameUiUiCallbacks\*

指向結構的指標，該結構包含開發人員想要處理之每個 UI 的處理常式和內容。

*useSystemUiIfAvailable*\
類型：bool

是否應在可用時使用系統 UI，而不是開發人員回呼。

### 傳回值

類型：STDAPI

## 備註

所有回呼會同時設定，並覆寫先前可能已設定的任何回呼。

## 需求

**標頭：** XGameUi.h

**支援的平台：** 僅在 Steam Deck 上支援

## 另請參閱

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


## Related topics

- [XGameUiSetUiCallbacks](/reference/system/xgameui/functions/xgameuisetuicallbacks.md)
- [XGameUiUiCallbacks](/reference/system/xgameui/structs/xgameuiuicallbacks.md)
