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

Sets the resulting text length and text to be returned by XGameUiShowTextEntryAsync

## Syntax

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

### Parameters

*callbackHandle*\
Type: XGameUiCallbackHandle

The handle for this callback invocation.

*response*\
Type: const char\*

The UTF-8 string to be returned by XGameUiShowTextEntryResult for the corresponding invocation of XGameUiShowTextEntryAsync. The length of the string, in characters, will be returned by XGameUiShowTextEntryResultSize.

### Return value

Type: STDAPI

HRESULT success or error code of the call.

## Requirements

**Header:** XGameUi.h

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

## See also

[XGameUI](/reference/system/xgameui/xgameui_members)

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


## Related topics

- [XGameUiCallbackHandle](/reference/system/xgameui/structs/xgameuicallbackhandle.md)
- [XGameUiTextEntryClose](/reference/system/xgameui/functions/xgameuitextentryclose.md)
- [XGameUiShowTextEntryUiCallback](/reference/system/xgameui/functions/xgameuishowtextentryuicallback.md)
- [XGameUiTextEntryOptions](/reference/system/xgameui/structs/xgameuitextentryoptions.md)
- [XGameUiTextEntryOpen](/reference/system/xgameui/functions/xgameuitextentryopen.md)
