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

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

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

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


## Related topics

- [game_chat_communication_relationship_adjuster](/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_adjuster.md)
- [chat_user_local::set_communication_relationship](/ja-jp/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_communication_relationship.md)
- [chat_user_local::get_effective_communication_relationship](/ja-jp/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_get_effective_communication_relationship.md)
- [GameChat2 メンバー](/ja-jp/reference/chat/gamechat2/gamechat2_members.md)
- [chat_manager::initialize](/ja-jp/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md)
