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

# game_chat_user_chat_indicator

> game_chat_user_chat_indicator

# game\_chat\_user\_chat\_indicator

定义用户相对于本地用户的当前聊天状态。

<a id="syntaxSection" />

## 语法

```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,  
}  
```

<a id="constantsSection" />

## 常量

| 常量                              | 描述                                                                                                                                                                                                                                 |
| ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| silent                          | 用户当前未在说话。<br /><br />最近被添加到本地 [chat\_manager](/reference/chat/gamechat2/classes/chat_manager/chat_manager) 实例的用户在 Game Chat 完成异步隐私和权限检查之前处于静默状态。                                                                                   |
| talking                         | 用户正在说话。                                                                                                                                                                                                                            |
| local\_microphone\_muted        | 用户的本地麦克风已静音。                                                                                                                                                                                                                       |
| incoming\_communications\_muted | 远程用户已被所有本地用户静音。                                                                                                                                                                                                                    |
| reputation\_restricted          | 与该用户的聊天受到限制,因为该用户具有 XBOX Live 服务指定的"Avoid Me"声誉,且 Game Chat 2 已为一个或多个本地用户应用了 [game\_chat\_communication\_relationship\_adjuster::reputation](/reference/chat/gamechat2/enums/game_chat_communication_relationship_adjuster) 关系调整器。 |
| platform\_restricted            | 由于涉及一个或多个本地用户的平台限制,与该用户的聊天受到限制。                                                                                                                                                                                                    |
| no\_chat\_focus                 | 用户无法聊天,因为应用未在其 AppXManifest 中指定麦克风功能,或者用户已将聊天音频焦点切换到应用之外。                                                                                                                                                                          |
| no\_microphone                  | 用户没有可用或已配置的麦克风。<br /><br />此状态仅对本地用户显示。如果与没有麦克风的远程用户的聊天通信原本会因静音或团队成员身份等原因而受到限制,则远程用户将显示为具有该限制。否则,没有麦克风的远程用户将显示为 `silent`。                                                                                                          |

<a id="remarksSection" />

## 备注

[chat\_user::chat\_indicator](/reference/chat/gamechat2/classes/chat_user/methods/chat_user_chat_indicator) 使用此枚举帮助提供用户相对于本地用户当前聊天状态的 UI 表示。该表示旨在向本地用户提供有关他们在与该用户通信时听到或看到什么以及听到或看不到该内容的原因的信息。有关提供用户当前聊天状态的 UI 表示的更多信息,请参阅 [使用 Game Chat C++ API](/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2) 中的 [UI](/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2#ui) 部分。

<a id="requirementsSection" />

## 需求

**头文件:** GameChat2.h

**支持的平台:** Windows、XBOX One 家族主机以及 XBOX Series 主机

<a id="seealsoSection" />

## 另请参阅

[Game Chat 2 简介](/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[chat\_user](/reference/chat/gamechat2/classes/chat_user/chat_user)\
[GameChat2 members](/reference/chat/gamechat2/gamechat2_members)


## Related topics

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