> ## 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.

# game_chat_user_chat_indicator

> game_chat_user_chat_indicator

# game\_chat\_user\_chat\_indicator

定義使用者相對於本機使用者的目前聊天狀態。

## 語法

```cpp theme={null}
enum class game_chat_user_chat_indicator  
{  
    silent,  
    talking,  
    local_microphone_muted,  
    incoming_communications_muted,  
    reputation_restricted,  
    platform_restricted,  
    no_chat_focus,  
    no_microphone,  
}  
```

## 常數

| 常數 | 描述 |
| - | - |
| silent | 使用者目前沒有說話。 最近新增至本機 [chat\_manager](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_manager/chat_manager.md) 執行個體的使用者會保持靜默，直到 Game Chat 完成非同步的隱私權和權限檢查為止。 |
| talking | 使用者目前正在說話。 |
| local\_microphone\_muted | 使用者的本機麥克風已靜音。 |
| incoming\_communications\_muted | 遠端使用者已被所有本機使用者設為靜音。 |
| reputation\_restricted | 與此使用者的聊天受到限制，因為該使用者具有 XBOX Live 服務指定的「避開我」信譽，且 Game Chat 2 已為一或多個本機使用者套用 [game\_chat\_communication\_relationship\_adjuster::reputation](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/enums/game_chat_communication_relationship_adjuster.md) 關係調整器。 |
| platform\_restricted | 由於涉及一或多個本機使用者的平台限制，與此使用者的聊天受到限制。 |
| no\_chat\_focus | 使用者無法聊天，因為應用程式未在其 AppXManifest 中指定麥克風功能，或使用者已將聊天音訊焦點從應用程式移開。 |
| no\_microphone | 使用者沒有可用或已設定的麥克風。 此狀態只會針對本機使用者出現。如果與沒有麥克風之遠端使用者的聊天通訊原本就會因為靜音或小組成員資格等原因而受到限制，該遠端使用者會顯示為具有該限制。否則，沒有麥克風的遠端使用者會顯示為 `silent`。 |

## 備註

[chat\_user::chat\_indicator](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_user/methods/chat_user_chat_indicator.md) 使用此列舉，協助提供使用者相對於本機使用者之目前聊天狀態的 UI 呈現方式。此呈現方式旨在讓本機使用者了解，就與該使用者的通訊而言，他們聽到或看到 (或未聽到或看到) 什麼內容及其原因。如需提供使用者目前聊天狀態之 UI 呈現方式的詳細資訊，請參閱[使用 Game Chat C++ API](https://docs.xbox.com/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md) 的 [UI](https://docs.xbox.com/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md#ui) 一節。

## 需求

**標頭：** GameChat2.h

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

## 另請參閱

[Game Chat 2 簡介](https://docs.xbox.com/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)\
[chat\_user](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user.md)\
[GameChat2 成員](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/gamechat2_members.md)


## Related topics

- [chat_indicator](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_user/methods/chat_user_chat_indicator.md)
- [chat_user](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user.md)
- [使用 Game Chat 2 C++ API](https://docs.xbox.com/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)
- [add_remote_user](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_add_remote_user.md)
- [add_local_user](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_add_local_user.md)
