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

> game_chat_communication_relationship_flags

# game\_chat\_communication\_relationship\_flags

定義兩位使用者之間的通訊關係。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
enum class game_chat_communication_relationship_flags  
{  
    none = 0x0,  
    send_microphone_audio = 0x1,  
    send_text_to_speech_audio = 0x2,  
    send_text = 0x4,  
    receive_audio = 0x8,  
    receive_text = 0x10,  
}  
```

<a id="constantsSection" />

## 常數

| 常數 | 描述 |
| - | - |
| none | 不允許本機使用者與目標使用者之間進行任何通訊。 |
| send\_microphone\_audio | 允許從本機使用者到目標使用者的麥克風通訊。 |
| send\_text\_to\_speech\_audio | 允許從本機使用者到目標使用者的文字轉語音通訊。 |
| send\_text | 允許從本機使用者到目標使用者的文字通訊。 |
| receive\_audio | 允許從目標使用者到本機使用者的音訊通訊。 |
| receive\_text | 允許從目標使用者到本機使用者的文字通訊。 |

<a id="remarksSection" />

## 備註

此列舉描述您的應用程式可以向 Game Chat 2 要求的兩位使用者之間的通訊關係。您可以呼叫 [chat\_user\_local::get\_effective\_communication\_relationship](/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_get_effective_communication_relationship) 方法來擷取本機使用者與指定目標使用者之間目前的通訊關係，或呼叫 [chat\_user\_local::set\_communication\_relationship](/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_communication_relationship) 方法來加以設定。您也可以在初始化聊天執行個體時，透過呼叫 [chat\_manager::initialize](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize) 方法來設定使用者之間的預設通訊關係。

如需初始化和使用聊天執行個體的詳細資訊，請參閱[使用 Game Chat 2 C++ API](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2)。

<a id="requirementsSection" />

## 需求

**標頭：** GameChat2.h

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

<a id="seealsoSection" />

## 另請參閱

[Game Chat 2 簡介](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[GameChat2 成員](/zh-TW/reference/chat/gamechat2/gamechat2_members)\
[chat\_user\_local](/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/chat_user_local)


## Related topics

- [game_chat_communication_relationship_adjuster](/zh-TW/reference/chat/gamechat2/enums/game_chat_communication_relationship_adjuster.md)
- [chat_user_local::set_communication_relationship](/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_communication_relationship.md)
- [chat_user_local::get_effective_communication_relationship](/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_get_effective_communication_relationship.md)
- [GameChat2 成員](/zh-TW/reference/chat/gamechat2/gamechat2_members.md)
- [chat_manager::initialize](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md)
