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

2 人のユーザー間のコミュニケーション リレーションシップを定義します。

## 構文

```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 に対して要求できる 2 人のユーザー間のコミュニケーション リレーションシップを表します。ローカル ユーザーと指定した対象ユーザーとの間の現在のコミュニケーション リレーションシップを取得するには、[chat\_user\_local::get\_effective\_communication\_relationship](https://docs.xbox.com/ja-jp/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/ja-jp/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_communication_relationship.md) メソッドを呼び出します。また、チャット インスタンスを初期化する際に、[chat\_manager::initialize](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md) メソッドを呼び出して、ユーザー間の既定のコミュニケーション リレーションシップを設定することもできます。

チャット インスタンスの初期化と操作の詳細については、「[Game Chat 2 C++ API の使用](https://docs.xbox.com/ja-jp/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/ja-jp/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)\
[GameChat2 メンバー](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/gamechat2_members.md)\
[chat\_user\_local](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_user/chat_user_local/chat_user_local.md)


## Related topics

- [set_communication_relationship](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_communication_relationship.md)
- [game_chat_communication_relationship_adjuster](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_adjuster.md)
- [get_effective_communication_relationship](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_get_effective_communication_relationship.md)
- [GameChat2 メンバー (API の内容)](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/gamechat2_members.md)
- [Game Chat 2 C++ API の使用](https://docs.xbox.com/ja-jp/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)
