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

> game_chat_communication_relationship_flags

# game\_chat\_communication\_relationship\_flags

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

## 語法

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

## 常數

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

## 備註

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

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

## 需求

**標頭：** 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)\
[GameChat2 成員](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/gamechat2_members.md)\
[chat\_user\_local](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/chat_user_local.md)


## Related topics

- [game_chat_communication_relationship_adjuster](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/enums/game_chat_communication_relationship_adjuster.md)
- [set_communication_relationship](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_communication_relationship.md)
- [get_effective_communication_relationship](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_get_effective_communication_relationship.md)
- [GameChat2 成員 (API 內容)](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/gamechat2_members.md)
- [使用 Game Chat 2 C++ API](https://docs.xbox.com/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)
