> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XUserPlatformSpopPromptEventHandler

> XUserPlatformSpopPromptEventHandler

# XUserPlatformSpopPromptEventHandler

顯示 SPOP 作業提示的事件處理常式

## 語法

```cpp theme={null}
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 需要提示使用者決定是否要登出另一個工作階段，並在目前的裝置上登入。這只會在呼叫 XUserAddUserWithUiAsync 導致 SPOP 否決時發生。

對於某些使用者，新式玩家代號尾碼可能為 null。

所有引數均由呼叫者擁有 (context 除外)。

## 需求

**標頭：** XUser.h

**程式庫：** xgameruntime.lib

**支援的平台：** 在 Steam Deck 上支援

## 另請參閱

[XUser](/zh-TW/reference/system/xuser/xuser_members)

[XUserPlatformSpopPromptSetEventHandlers](/zh-TW/reference/system/xuser/functions/xuserplatformspoppromptseteventhandlers)

[XUserPlatformSpopPromptClearEventHandler](/zh-TW/reference/system/xuser/functions/xuserplatformspoppromptcleareventhandler)

[XUserPlatformSpopPromptComplete](/zh-TW/reference/system/xuser/functions/xuserplatformspoppromptcomplete)

[XUserPlatformSpopOperationResult](/zh-TW/reference/system/xuser/enums/xuserplatformspopoperationresult)


## Related topics

- [XUserPlatformSpopPromptEventHandler](/reference/system/xuser/functions/xuserplatformspopprompteventhandler.md)
- [XUserPlatformSpopPromptSetEventHandlers](/reference/system/xuser/functions/xuserplatformspoppromptseteventhandlers.md)
