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

# XGameUiShowMessageDialogUiCallback

> XGameUiShowMessageDialogUiCallback

# XGameUiShowMessageDialogUiCallback

Signature for a XGameUiShowMessageDialogAsync callback.

## Syntax

```cpp theme={null}
void CALLBACK XGameUiShowMessageDialogUiCallback(
    
    XGameUiCallbackHandle callbackHandle,
    XTaskQueueHandle queue,
    const char* titleText,
    const char* contentText,
    const char* firstButtonText,
    const char* secondButtonText,
    const char* thirdButtonText,
    XGameUiMessageDialogButton defaultButton,
    XGameUiMessageDialogButton cancelButton,
    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 text title of the message dialog.

*contentText*\
Type: const char\*

The text displayed inside of the message dialog.

*firstButtonText*\
Type: const char\*

The text displayed on the first button of the message dialog.

*secondButtonText*\
Type: const char\*

The text displayed on the second button of the message dialog.

*thirdButtonText*\
Type: const char\*

The text displayed on the third button of the message dialog.

*defaultButton*\
Type: XGameUiMessageDialogButton

Indicates which button is selected by default when the message dialog is first displayed.

*cancelButton*\
Type: XGameUiMessageDialogButton

Indicates which button represents the cancel action.

*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)
- [XGameUiSetMessageDialogUiResponse](/reference/system/xgameui/functions/xgameuisetmessagedialoguiresponse.md)
- [XGameUiShowMessageDialogResult](/reference/system/xgameui/functions/xgameuishowmessagedialogresult.md)
- [XGameUiShowMessageDialogAsync](/reference/system/xgameui/functions/xgameuishowmessagedialogasync.md)
- [XGameUiShowErrorDialogUiCallback](/reference/system/xgameui/functions/xgameuishowerrordialoguicallback.md)
