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

# XGameUiShowAchievementsAsync

> XGameUiShowAchievementsAsync

# XGameUiShowAchievementsAsync

Displays UI presenting the requesting player's achievements for the specified title.

## Syntax

```cpp theme={null}
HRESULT XGameUiShowAchievementsAsync(  
         XAsyncBlock* async,  
         XUserHandle requestingUser,  
         uint32_t titleId  
)  
```

### Parameters

*async*   \_In\_<br />Type: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

A pointer to the [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) that is passed to [XAsyncRun](/reference/system/xasync/functions/xasyncrun).

*requestingUser*   \_In\_<br />Type: XUserHandle

The player requesting the list of achievements.

*titleId*   \_In\_<br />Type: uint32\_t

The ID of the title that the player is requesting achievements for.

### Return value

Type: HRESULT

HRESULT success or error code of the async call.

## Remarks

This method does not return a list of achievements, it only displays the achievements in the UI for the player.

Calling for UI will cause your game to enter *constrained mode*. In constrained mode your title will receive fewer system resources while it is in the background of the UI that has been called for. To learn more about constrained mode and other operational modes for your title read [XBOX Game Life Cycle (NDA topic)](/build/console-features/console-workflows/xbox-game-life-cycle).

## Requirements

**Header:** XGameUI.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, Steam Deck, XBOX One family consoles and XBOX Series consoles

## See also

[XGameUI](/reference/system/xgameui/xgameui_members)<br />[XGameUiShowAchievementsResult](/reference/system/xgameui/functions/xgameuishowachievementsasync)<br />[XBOX Game Life Cycle (NDA topic)](/build/console-features/console-workflows/xbox-game-life-cycle)


## Related topics

- [XGameUiShowAchievementsResult](/reference/system/xgameui/functions/xgameuishowachievementsresult.md)
- [XGameUiShowAchievementsUiCallback](/reference/system/xgameui/functions/xgameuishowachievementsuicallback.md)
- [XGameUiSetAchievementsUiResponse](/reference/system/xgameui/functions/xgameuisetachievementsuiresponse.md)
- [XGameUiUiCallbacks](/reference/system/xgameui/structs/xgameuiuicallbacks.md)
- [XGameUI](/reference/system/xgameui/xgameui_members.md)
