> ## 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](/zh-TW/reference/system/xgameui/xgameui_members)\
[XGameUiSetUiCallbacks](/zh-TW/reference/system/xgameui/functions/xgameuisetuicallbacks)


## Related topics

- [XGameUiShowTextEntryUiCallback](/reference/system/xgameui/functions/xgameuishowtextentryuicallback.md)
- [XGameUiUiCallbacks](/reference/system/xgameui/structs/xgameuiuicallbacks.md)
