> ## 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](/reference/system/xgameui/xgameui_members)

[XGameUiShowTextEntryAsync](/reference/system/xgameui/functions/xgameuishowtextentryasync)


## Related topics

- [XGameUiCallbackHandle](/zh-CN/reference/system/xgameui/structs/xgameuicallbackhandle.md)
- [XGameUiShowTextEntryUiCallback](/zh-CN/reference/system/xgameui/functions/xgameuishowtextentryuicallback.md)
- [XGameUiTextEntryExtents](/zh-CN/reference/system/xgameui/structs/xgameuitextentryextents.md)
- [XGameUiTextEntryOptions](/zh-CN/reference/system/xgameui/structs/xgameuitextentryoptions.md)
- [XGameUiTextEntryClose](/zh-CN/reference/system/xgameui/functions/xgameuitextentryclose.md)
