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

# XGameUiPlayerPickerInfo

> XGameUiPlayerPickerInfo

# XGameUiPlayerPickerInfo

用于封装开发者自定义玩家选择器 UI 所需用户信息的结构。

## 语法

```cpp theme={null}
struct XGameUiPlayerPickerInfo {
    XUserHandle requestingUser;
    const char* promptText;
    uint32_t selectFromPlayersCount;
    const uint64_t* selectFromPlayers;
    uint32_t preSelectedPlayersCount;
    const uint64_t* preSelectedPlayers;
    uint32_t minSelectionCount;
    uint32_t maxSelectionCount;
};
```

## 成员

*requestingUser*\
类型：XUserHandle

请求 UI 的用户的句柄。

*promptText*\
类型：const char\*

提示显示文本。

*selectFromPlayersCount*\
类型：uint32\_t

调用方可从中选择的玩家数量。

*selectFromPlayers*\
类型：const uint64\_t\*

指向调用方可从中选择的玩家 ID 列表的指针。

*preSelectedPlayersCount*\
类型：uint32\_t

呈现 UI 时预先选择的玩家数量。

*preSelectedPlayers*\
类型：const uint64\_t\*

指向呈现 UI 时预先选择的玩家 ID 列表的指针。

*minSelectionCount*\
类型：uint32\_t

调用方必须选择的最少人数。

*maxSelectionCount*\
类型：uint32\_t

调用方可以选择的最多人数。

## 要求

**标头：** XGameUi.h

**支持的平台：** 仅在 Steam Deck 上受支持

## 请参阅

[XGameUI](/reference/system/xgameui/xgameui_members)
[XGameUiShowPlayerPickerUiCallback](/reference/system/xgameui/functions/xgameuishowplayerpickeruicallback)


## Related topics

- [XGameUiShowPlayerPickerUiCallback](/zh-CN/reference/system/xgameui/functions/xgameuishowplayerpickeruicallback.md)
- [XGameUiSetPlayerPickerUiResponse](/zh-CN/reference/system/xgameui/functions/xgameuisetplayerpickeruiresponse.md)
- [XGameUiShowPlayerPickerResult](/zh-CN/reference/system/xgameui/functions/xgameuishowplayerpickerresult.md)
- [XGameUiShowPlayerPickerAsync](/zh-CN/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md)
- [XGameUiShowPlayerPickerResultCount](/zh-CN/reference/system/xgameui/functions/xgameuishowplayerpickerresultcount.md)
