XGameUiShowMultiplayerActivityGameInviteAsync

This method shows a picker UI populated from the requesting player's friend list and suggested friend list to send out game invites for titles using the Multiplayer Activity service.

Syntax

HRESULT XGameUiShowMultiplayerActivityGameInviteAsync(
  XAsyncBlock * async,
  XUserHandle requestingUser
)

Parameters

async   _In_ Type: XAsyncBlock *

A pointer to the XAsyncBlock that is passed to XAsyncRun.

requestingUser   _In_
Type: XUserHandle

A handle to the user that is sending the invites.

Remarks

To send an invite with UI, after an activity is set using XblMultiplayerActivitySetActivityAsync (see example above), the title should call the XGameUiShowMultiplayerActivityGameInviteAsync API passing along the requesting user. It will use the current activity of the title and invite players using its connection string and settings.

Requirements

Header: XGameUI.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XGameUI members