Edit

Share via


TitleCallableUI.ShowGameInviteUIAsync Method

Definition

Shows a picker UI populated from the selected user's friend list and suggested friend list. After selection, the user can send an invitation to play a game and/or party chat for a specified game session to the selected people.

public static Windows.Foundation.IAsyncAction ShowGameInviteUIAsync (Microsoft.Xbox.Services.Multiplayer.MultiplayerSessionReference sessionReference, string contextStringId);
static member ShowGameInviteUIAsync : Microsoft.Xbox.Services.Multiplayer.MultiplayerSessionReference * string -> Windows.Foundation.IAsyncAction
Public Shared Function ShowGameInviteUIAsync (sessionReference As MultiplayerSessionReference, contextStringId As String) As IAsyncAction

Parameters

sessionReference
MultiplayerSessionReference

A reference to the multiplayer session to invite people to.

contextStringId
String

The custom context string ID. This string ID is defined during Xbox Live ingestion to identify the invitation text that is additional to the standard invitation text. The ID string must be prefixed with "///". Pass an empty string if you don't want a custom string added to the invite.

Returns

Windows.Foundation.IAsyncAction

An interface for tracking the progress of the asynchronous call. The operation completes when the UI is closed.

Applies to