Using the Title-Callable UI (TCUI) (System UI overlay)
Calling the XGameUiShowSendGameInviteAsync API retrieves the standard System UI overlay for inviting friends. This displays a UI that the user can navigate to select friends or users from the Recent Players list to invite to the game. When the user selects Confirm, the invite is sent to the selected users.Using a title-implemented custom UI
Your title can implement a custom UI for viewing online friends and inviting them to game sessions. Use the XblMultiplayerSendInvitesAsync API to send invites to a set of users that are defined by their XboxUserId (XUID) as shown in the following code. This is useful if you prefer to use your own in-game UI instead of the stock System UI.Flat C
Reference API documentation
- Xgameactivation (API contents)
- xgameui (API contents)
- Functions
- multiplayer_c (API contents)
- Functions
- Structures
- xasync (API contents)
- Structures
