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

# XGameUiShowTextEntryUiCallback

> XGameUiShowTextEntryUiCallback

# XGameUiShowTextEntryUiCallback

XGameUiShowTextEntryAsync 回调的签名。

## 语法

```cpp theme={null}
void CALLBACK XGameUiShowTextEntryUiCallback(
    
    XGameUiCallbackHandle callbackHandle,
    XTaskQueueHandle queue,
    const char* titleText,
    const char* descriptionText,
    const char* defaultText,
    XGameUiTextEntryInputScope inputScope,
    uint32_t maxTextLength,
    void* context
);
```

### 参数

*callbackHandle*\
类型：XGameUiCallbackHandle

此回调调用的句柄。

*queue*\
类型：XTaskQueueHandle

执行 UI 回调所在任务队列的句柄。

*titleText*\
类型：const char\*

用于文本输入 UI 中标题的 UTF-8 字符串。

*descriptionText*\
类型：const char\*

用于文本输入 UI 中说明的 UTF-8 字符串。

*defaultText*\
类型：const char\*

用于在文本输入 UI 中初始填充输入内容的 UTF-8 字符串。

*inputScope*\
类型：XGameUiTextEntryInputScope

文本输入的输入范围，用于表示允许的信息类型。

*maxTextLength*\
类型：uint32\_t

UTF-8 字符串允许的最大字符长度。

*context*\
类型：void\*

指向开发者提供的上下文的指针。

## 要求

**标头：** XGameUi.h

**支持的平台：** 仅在 Steam Deck 上受支持

## 请参阅

[XGameUI](/reference/system/xgameui/xgameui_members)\
[XGameUiSetUiCallbacks](/reference/system/xgameui/functions/xgameuisetuicallbacks)


## Related topics

- [XGameUiUiCallbacks](/zh-CN/reference/system/xgameui/structs/xgameuiuicallbacks.md)
- [XGameUiSetTextEntryUiResponse](/zh-CN/reference/system/xgameui/functions/xgameuisettextentryuiresponse.md)
- [XGameUiShowTextEntryAsync](/zh-CN/reference/system/xgameui/functions/xgameuishowtextentryasync.md)
- [XGameUiShowTextEntryResult](/zh-CN/reference/system/xgameui/functions/xgameuishowtextentryresult.md)
- [XGameUiShowTextEntryResultSize](/zh-CN/reference/system/xgameui/functions/xgameuishowtextentryresultsize.md)
