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

Signature for a XGameUiShowTextEntryAsync callback.

## Syntax

```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
);
```

### Parameters

*callbackHandle*\
Type: XGameUiCallbackHandle

Handle for this callback invocation.

*queue*  
Type: XTaskQueueHandle

Insert Handle to the task queue that the UI callback was executed on.

*titleText*\
Type: const char\*

The UTF-8 string to use for the title in the text entry UI.

*descriptionText*\
Type: const char\*

The UTF-8 string to use for the description in the text entry UI.

*defaultText*\
Type: const char\*

The UTF-8 string to initially populate the input in the text entry UI.

*inputScope*\
Type: XGameUiTextEntryInputScope

The input scope of the text entry, indicating the type of information that is allowed.

*maxTextLength*\
Type: uint32\_t

The maximum allowable length of the UTF-8 string in characters.

*context*\
Type: void\*

Pointer to dev-provided context.

## Requirements

**Header:** XGameUi.h

**Supported platforms:** Supported only on Steam Deck

## See also

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


## Related topics

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