> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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](https://docs.xbox.com/reference/system/xgameui/xgameui_members.md)

[XGameUiShowTextEntryAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowtextentryasync.md)


## Related topics

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