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

> game_chat_communication_relationship_adjuster

# game\_chat\_communication\_relationship\_adjuster

[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) の呼び出しによって以前に設定されたコミュニケーション リレーションシップに対して、Game Chat 2 が適用する追加の調整ステップを定義します。

## 構文

```cpp theme={null}
enum class game_chat_communication_relationship_adjuster  
{  
    uninitialized,  
    initializing,  
    none,  
    privilege,  
    privacy,  
    reputation,  
    conflict_with_other_user,  
    privilege_check_failure,  
    resolve_user_issue,
    service_unavailable,
}  
```

## 定数

| 定数 | 説明 |
| - | - |
| uninitialized | ユーザーのペアに対してアプリからリレーションシップが設定されていません。  Game Chat 2 は、少なくとも一方向のコミュニケーションを許可するリレーションシップが設定されるまで、ユーザーのペアの調整機能を初期化できません。 |
| initializing | Game Chat 2 は、対象ユーザーの一方について、特権、プライバシー、または評価に関する情報を初期化しています。  調整機能がこの状態にある間、実効コミュニケーションは `none` に設定されます。 |
| none | Game Chat 2 は、このリレーションシップに追加の調整を適用していません。  実効リレーションシップは、最後に呼び出された [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) で指定されたものに設定されます。 |
| privilege | Game Chat 2 は、ローカル ユーザーのコミュニケーション特権によりコミュニケーションを制限しています。この問題はローカル ユーザーが UI で解決できる可能性があります。  この調整機能が適用されている間、リレーションシップから [game\_chat\_communication\_relationship\_flags::send\_microphone\_audio](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md)、[game\_chat\_communication\_relationship\_flags::send\_text\_to\_speech\_audio](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md)、および [game\_chat\_communication\_relationship\_flags::send\_text](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md) のリレーションシップ フラグが false に設定されます。アプリは、[XUserResolvePrivilegeWithUiAsync](https://docs.xbox.com/ja-jp/reference/system/xuser/functions/xuserresolveprivilegewithuiasync.md) メソッドを呼び出し、`options` パラメーターに [XUserPrivilegeOptions::None](https://docs.xbox.com/ja-jp/reference/system/xuser/enums/xuserprivilegeoptions.md) 定数、`privilege` パラメーターに [XUserPrivilege::Communications](https://docs.xbox.com/ja-jp/reference/system/xuser/enums/xuserprivilege.md) 定数を指定して、問題の解決を試みることができます。ユーザーが問題を解決できない、または解決したくない場合もあります。ユーザーが問題を解決した場合、その解決は次にユーザーが Game Chat 2 に追加されたときに有効になります。 |
| privacy | Game Chat 2 は、リモート ユーザーに対するローカル ユーザーのプライバシー設定によりコミュニケーションを制限しています。  この調整機能が適用されている間、リレーションシップから [game\_chat\_communication\_relationship\_flags::receive\_audio](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md) および [game\_chat\_communication\_relationship\_flags::receive\_text](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md) のリレーションシップ フラグが false に設定されます。さらに、[game\_chat\_communication\_relationship\_flags::send\_microphone\_audio](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md)、[game\_chat\_communication\_relationship\_flags::send\_text\_to\_speech\_audio](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md)、および [game\_chat\_communication\_relationship\_flags::send\_text](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md) のリレーションシップ フラグも、プライバシー制限の性質に基づいて false に設定される場合があります。 |
| reputation | XBOX Live サービスによってユーザーに「Avoid Me」の評価が指定されているため、Game Chat 2 はコミュニケーションを制限しています。  この調整機能が適用されている間、リレーションシップから [game\_chat\_communication\_relationship\_flags::receive\_audio](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md) および [game\_chat\_communication\_relationship\_flags::receive\_text](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md) のリレーションシップ フラグが false に設定されます。 |
| conflict\_with\_other\_user | ユーザーが Kinect などの共有デバイスを使用しており、他のユーザーのリレーションシップ設定によりリレーションシップが変更されました。  競合は、[chat\_manager::initialize](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_initialize.md) メソッドで指定された設定に基づいて解決されます。 |
| privilege\_check\_failure | Game Chat 2 は、ユーザーの特権の取得に失敗したためコミュニケーションを制限しています。  この調整機能が適用されている間、リレーションシップから [game\_chat\_communication\_relationship\_flags::send\_microphone\_audio](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md)、[game\_chat\_communication\_relationship\_flags::send\_text\_to\_speech\_audio](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md)、および [game\_chat\_communication\_relationship\_flags::send\_text](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md) のリレーションシップ フラグが false に設定されます。 |
| resolve\_user\_issue | Game Chat 2 は、ユーザーの特権の取得に失敗したためコミュニケーションを制限しています。この問題はユーザーが UI で解決できる可能性があります。  この調整機能が適用されている間、リレーションシップから [game\_chat\_communication\_relationship\_flags::send\_microphone\_audio](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md)、[game\_chat\_communication\_relationship\_flags::send\_text\_to\_speech\_audio](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md)、および [game\_chat\_communication\_relationship\_flags::send\_text](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/enums/game_chat_communication_relationship_flags.md) のリレーションシップ フラグが false に設定されます。アプリは、[XUserResolveIssueWithUiAsync](https://docs.xbox.com/ja-jp/reference/system/xuser/functions/xuserresolveissuewithuiasync.md) を呼び出し、`url` パラメーターに `nullptr` を指定して、問題の解決を試みることができます。ユーザーが問題を解決できない、または解決したくない場合もあります。ユーザーが問題を解決した場合、その解決は次にユーザーが Game Chat 2 に追加されたときに有効になります。 |
| service\_unavailable | XBOX Live が一時的に利用できず、ユーザーのコミュニケーション設定を取得できなかったため、Game Chat 2 はコミュニケーションを制限しています。 |

## 解説

この列挙は、[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) の呼び出しによって以前に設定されたコミュニケーション リレーションシップに対して、Game Chat 2 が適用する追加の調整ステップ (存在する場合) を表します。既存のリレーションシップに対して Game Chat 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::get_effective_communication_relationship` を呼び出すと、`communicationRelationshipAdjuster` パラメーターに `privilege` が返されます。コミュニケーション リレーションシップの詳細については、「[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)


## Related topics

- [game_chat_communication_relationship_adjuster_changed_state_change](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/structs/game_chat_communication_relationship_adjuster_changed_state_change.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)
- [Game Chat 2 C++ API の使用](https://docs.xbox.com/ja-jp/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)
- [Game Chat 2 の概要](https://docs.xbox.com/ja-jp/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)
- [GameChat2 メンバー (API の内容)](https://docs.xbox.com/ja-jp/reference/chat/gamechat2/gamechat2_members.md)
