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

# Llamadas a las API compatibles con la nube

> Llamadas a las API compatibles con la nube

Use este tema para detectar si su título compatible con la nube (Cloud Aware) puede transmitirse, de modo que pueda [optimizar su juego](https://docs.xbox.com/es/build/core-features/common/game-streaming/game-streaming-optimizing-your-game.md) para XBOX Game Streaming.

## Configurar el juego para el streaming

Durante la inicialización del juego, asegúrese de haber configurado el componente de streaming de juegos mediante `XGameStreamingInitialize`, como se muestra en el código siguiente.

```C++ theme={null}

// Initialize the game streaming component
XGameStreamingInitialize();

```

Para detectar si hay algún cliente de streaming activo conectado actualmente, use `XGameStreamingIsStreaming`, como se muestra en el código siguiente.

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

## Administrar el estado de la conexión

Si hay clientes de streaming activos, su juego tiene una comprensión puntual de esos clientes al usar `XGameStreamingIsStreaming`. Para recibir una notificación cuando un cliente de streaming se conecta o desconecta de su juego, use [XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/es/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md).

## Documentación de referencia de la API

* [XGameStreaming (contenido de la API)](https://docs.xbox.com/es/reference/system/xgamestreaming/xgamestreaming_members.md)
  * Funciones
    * [XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/es/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)

## Consulte también

[XGameStreaming (contenido de la API)](https://docs.xbox.com/es/reference/system/xgamestreaming/xgamestreaming_members.md#connection-state)
[Optimización del juego](https://docs.xbox.com/es/build/core-features/common/game-streaming/game-streaming-optimizing-your-game.md)


## Related topics

- [Tutoriales y ejemplos de Game Saves](https://docs.xbox.com/es/build/core-features/common/game-save/game-saves-walkthroughs-and-samples.md)
- [Información general sobre usuarios invitados](https://docs.xbox.com/es/build/core-features/common/user/users-guest-overview.md)
- [Plataformas compatibles con PlayFab](https://docs.xbox.com/es/services/playfab/sdks/platforms/index.md)
- [XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/es/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)
- [XGameStreaming (contenido de la API)](https://docs.xbox.com/es/reference/system/xgamestreaming/xgamestreaming_members.md)
