XGameActivationInfo
Contains the activation information passed to the activation callback.Syntax
Members
typeType: XGameActivationType The type of activation that occurred. Determines which field of the union contains valid data. protocolUri
Type: const char* The protocol URI that activated the game. Valid when
type is XGameActivationType::Protocol.
fileType: const char* The file path that activated the game. Valid when
type is XGameActivationType::File.
inviteUriType: const char* The invite URI for the game session. Valid when
type is XGameActivationType::PendingGameInvite or XGameActivationType::AcceptedGameInvite.
Remarks
The XGameActivationInfo structure is passed to the XGameActivationCallback when an activation event occurs. Thetype field indicates the kind of activation, and the corresponding union field contains the relevant data.
When the activation type is PendingGameInvite, the game should present UI to allow the user to accept or reject the invite. If the user accepts, call XGameActivationAcceptPendingInvite with the inviteUri. This triggers a subsequent callback with the AcceptedGameInvite type.
Requirements
Header: XGameActivation.h Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesConceptual documentation
See also
XGameActivationXGameActivationType
XGameActivationCallback
XGameActivationAcceptPendingInvite
