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
Last modified on October 6, 2026