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

> game_chat_communication_relationship_adjuster

# game\_chat\_communication\_relationship\_adjuster

[chat\_user\_local::set\_communication\_relationship](/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_set_communication_relationship) の呼び出しによって以前に設定されたコミュニケーション リレーションシップに対して、Game Chat 2 が適用する追加の調整ステップを定義します。

<a id="syntaxSection" />

## 構文

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

<a id="constantsSection" />

## 定数

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

<a id="remarksSection" />

## 解説

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


## Related topics

- [game_chat_communication_relationship_adjuster_changed_state_change](/ja-jp/reference/chat/gamechat2/structs/game_chat_communication_relationship_adjuster_changed_state_change.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)
- [Game Chat 2 C++ API の使用](/ja-jp/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)
- [GameChat2 メンバー](/ja-jp/reference/chat/gamechat2/gamechat2_members.md)
- [game_chat_user_chat_indicator](/ja-jp/reference/chat/gamechat2/enums/game_chat_user_chat_indicator.md)
