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

# chat_indicator

> chat_user::chat_indicator

# chat\_user::chat\_indicator

指出是否可以進行聊天，以及目前是否正在為此使用者產生音訊。

## 語法

```cpp theme={null}
game_chat_user_chat_indicator chat_indicator(  
)  
```

### 參數

### 傳回值

類型：game\_chat\_user\_chat\_indicator

## 備註

此指示器旨在協助以 UI 圖示呈現，讓使用者能判斷他們為何會聽到/看到目前的內容 (「誰在說話？」)，或為何沒有。

此值經常變更，通常會在每個圖形畫面輪詢一次。

如果已啟用解碼後音訊操作，聊天指示器會根據哪些解碼後音訊來源串流正嘗試且獲允許與哪些解碼後音訊接收串流交談來設定。不論應用程式如何將解碼後的來源串流混合在一起，都會設定聊天指示器。

## 需求

**標頭：** GameChat2.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[chat\_user](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user.md)\
[game\_chat\_user\_chat\_indicator](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/enums/game_chat_user_chat_indicator.md)\
[chat\_user::chat\_user\_local::set\_microphone\_muted](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_microphone_muted.md)\
[game\_chat\_audio\_manipulation\_mode\_flags::post\_decode\_stream\_manipulation](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/enums/game_chat_audio_manipulation_mode_flags.md)


## Related topics

- [game_chat_user_chat_indicator](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/enums/game_chat_user_chat_indicator.md)
- [使用 Game Chat 2 C++ API](https://docs.xbox.com/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)
- [remote_user_muted](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_remote_user_muted.md)
- [microphone_muted](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_microphone_muted.md)
- [set_microphone_muted](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_microphone_muted.md)
