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

# XGameStreamingHideTouchControlsOnClient

> XGameStreamingHideTouchControlsOnClient

# XGameStreamingHideTouchControlsOnClient

指定されたストリーミング クライアント デバイスに対し、タッチ レイアウトが表示されている場合は非表示にするよう要求します。

## Syntax

```cpp theme={null}
void XGameStreamingHideTouchControlsOnClient(  
         XGameStreamingClientId client  
)  
```

### Parameters

*client*   \_In\_\
型: XGameStreamingClientId

タッチ コントロールを非表示にするストリーミング クライアント デバイス。

### Return value

型: void

## Remarks

この API は、指定されたゲーム ストリーミング クライアントに対し、表示されているタッチ オーバーレイ コントロールを削除するよう要求します。プレイヤーがゲームをストリーミングしていない場合、またはタッチ オーバーレイ コントロールを表示していないデバイスにストリーミングしている場合、この関数は何も行いません。

指定されたタッチ コントロール レイアウトを表示するには、[XGameStreamingShowTouchControlLayoutOnClient](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayoutonclient.md) を呼び出します。

`XGameStreamingHideTouchControlsOnClient` を呼び出すたびにネットワーク経由でメッセージが送信されるため、フレームごとに呼び出さないでください。代わりに、画面上に表示されているタッチ コントロールから遷移する必要がある場合にのみこの API を呼び出してください。

**すべての** 接続されているストリーミング クライアント デバイスでタッチ コントロール レイアウトを非表示にする必要がある場合は、代わりに [XGameStreamingHideTouchControls](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminghidetouchcontrols.md) の使用を検討してください。

## Examples

```C++ theme={null}
void OnShowMenu(XGameStreamingClientId client)
{
    // This game has native touch support for the menu system, so hide touch overlay controls
    XGameStreamingHideTouchControlsOnClient(client);
}

void OnDismissMenu(XGameStreamingClientId client)
{
    // Show the touch overlay controls which were previously on the screen before we hid them
    // due to bringing up the menu.
    XGameStreamingShowTouchControlsOnClient(client);
}
```

## Requirements

**ヘッダー:** xgamestreaming.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## See also

[XGameStreamingShowTouchControlLayoutOnClient](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayoutonclient.md)\
[XGameStreamingHideTouchControls](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminghidetouchcontrols.md)\
[XGameStreaming](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md#TouchAdaptation)


## Related topics

- [XGameStreamingHideTouchControls](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminghidetouchcontrols.md)
- [XGameStreamingShowTouchControlLayoutOnClient](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayoutonclient.md)
- [XGameStreaming (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)
- [Unity プロジェクトでの GDK API 用 C# ラッパーの使用](https://docs.xbox.com/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XGameStreamingShowTouchControlLayout](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayout.md)
