Skip to main content

XUserPlatformSpopPromptEventHandler

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

语法

参数

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 需要提示用户决定是否要注销其他会话并在当前设备上登录。此情况只会作为对调用 XUserAddUserWithUiAsync 时导致 SPOP 否决的响应而发生。 对于某些用户,现代玩家代号后缀可能为 null。 所有参数均由调用方拥有(context 除外)。

要求

头文件: XUser.h 库: xgameruntime.lib 支持的平台: 在 Steam Deck 上受支持

另请参阅

XUser XUserPlatformSpopPromptSetEventHandlers XUserPlatformSpopPromptClearEventHandler XUserPlatformSpopPromptComplete XUserPlatformSpopOperationResult
最后修改于 2026年8月13日