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

Determina se o jogo está sendo transmitido por streaming no momento.

## Sintaxe

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

### Valor retornado

Tipo: bool

`XGameStreamingIsStreaming` retornará true se o jogo estiver em execução em um XBOX que tenha pelo menos um dispositivo cliente de streaming conectado.

## Comentários

`XGameStreamingIsStreaming` não diferencia se o console está fazendo streaming por meio do Jogo Remoto ou do XBOX Game Streaming.

Para ser notificado quando dispositivos cliente de streaming individuais se conectarem e/ou desconectarem, considere registrar um retorno de chamada por meio de [XGameStreamingRegisterConnectionStateChanged](/pt-BR/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged).

## Exemplos

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

## Requisitos

**Cabeçalho:** xgamestreaming.h

**Biblioteca:** xgameruntime.lib

**Plataformas com suporte:** Windows, consoles da família XBOX One e consoles XBOX Series

## Confira também

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


## Related topics

- [XGameStreamingIsStreaming](/reference/system/xgamestreaming/functions/xgamestreamingisstreaming.md)
- [XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members.md)
- [XGameStreamingGetClients](/reference/system/xgamestreaming/functions/xgamestreaminggetclients.md)
