XUserPlatformSpopPromptEventHandler

显示 SPOP作事件处理程序的提示

语法

typedef void (XUserPlatformSpopPromptEventHandler)(
    _In_opt_ void* context,
    _In_ uint32_t userIdentifier,
    _In_ XUserPlatformOperation operation,
    _In_z_ char const* modernGamertag,
    _In_opt_z_ char const* modernGamertagSuffix
);

参数

context _In_opt_
类型:void*

指向事件处理程序使用的数据的可选指针。

userIdentifier _In_
类型:uint32_t

添加用户时传递给 XUser 的用户标识符。

operation _In_
类型:XUserPlatformOperation

此操作的句柄。

modernGamertag _In_z_
类型:char const*

用户的现代玩家代号。

modernGamertagSuffix _In_opt_z_
类型:char const*

现代玩家代号后缀(如果存在)。 对于某些用户,可能为 null。

返回值

备注

当用户已在其他设备上登录并因此命中 SPOP 否决时,将引发此事件。 XUser 需要提示用户决定是否要在当前设备上注销其他会话和登录。 这只会作为对导致 SPOP 否决的 XUserAddUserWithUiAsync 调用的响应发生。

对于某些用户,新式玩家代号后缀可能为 null。

所有参数都由调用方拥有(上下文除外)。

要求

头文件:XUser.h

库:xgameruntime.lib

支持的平台: Steam Deck 上支持

另请参阅

XUser

XUserPlatformSpopPromptSetEventHandlers

XUserPlatformSpopPromptClearEventHandler

XUserPlatformSpopPromptComplete

XUserPlatformSpopOperationResult