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

# XGameStreamingIsStreaming

> XGameStreamingIsStreaming

# XGameStreamingIsStreaming

ゲームが現在ストリーミング中かどうかを判定します。

## Syntax

```cpp theme={null}
bool XGameStreamingIsStreaming();
```

### Return value

型: bool

ゲームが少なくとも 1 つのストリーミング クライアント デバイスが接続された XBOX で実行されている場合、`XGameStreamingIsStreaming` は true を返します。

## Remarks

`XGameStreamingIsStreaming` は、本体がリモート プレイ経由でストリーミングされているのか、XBOX Game Streaming 経由でストリーミングされているのかを区別しません。

個々のストリーミング クライアント デバイスの接続または切断について通知を受けたい場合は、[XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged) を通じてコールバックを登録することを検討してください。

## Examples

```C++ theme={null}
 if (XGameStreamingIsStreaming())
 {
     // The game is currently streaming to at least one device
     // Enable any customizations that might be useful when running from the cloud
 }
```

## Requirements

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

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

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

## See also

[XGameStreamingConnectionState](/reference/system/xgamestreaming/enums/xgamestreamingconnectionstate)\
[XGameStreamingUnregisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged)\
[XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged)\
[XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members#ConnectionState)


## Related topics

- [XGameStreamingGetClients](/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetclients.md)
- [XGameStreamingGetClientCount](/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetclientcount.md)
- [XGameStreamingGetConnectionState](/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetconnectionstate.md)
- [XGameStreaming](/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)
- [XGameStreamingUnregisterConnectionStateChanged](/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged.md)
