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

# XGameUiSetTextEntryUiResponse

> XGameUiSetTextEntryUiResponse

# XGameUiSetTextEntryUiResponse

設定要由 XGameUiShowTextEntryAsync 傳回的結果文字長度和文字

## 語法

```cpp theme={null}
STDAPI  XGameUiSetTextEntryUiResponse(
     XGameUiCallbackHandle callbackHandle,
     const char* response
) noexcept;
```

### 參數

*callbackHandle*\
類型：XGameUiCallbackHandle

此回呼叫用的控制代碼。

*response*\
類型：const char\*

針對 XGameUiShowTextEntryAsync 的對應叫用，要由 XGameUiShowTextEntryResult 傳回的 UTF-8 字串。字串的長度 (以字元為單位) 將由 XGameUiShowTextEntryResultSize 傳回。

### 傳回值

類型：STDAPI

呼叫的 HRESULT 成功或錯誤碼。

## 需求

**標頭：** XGameUi.h

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

## 另請參閱

[XGameUI](/zh-TW/reference/system/xgameui/xgameui_members)

[XGameUiShowTextEntryAsync](/zh-TW/reference/system/xgameui/functions/xgameuishowtextentryasync)


## Related topics

- [XGameUiSetTextEntryUiResponse](/reference/system/xgameui/functions/xgameuisettextentryuiresponse.md)
- [XGameUiCallbackHandle](/reference/system/xgameui/structs/xgameuicallbackhandle.md)
