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

# 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](/build/core-features/common/game-streaming/game-streaming-optimizing-your-game) 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](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged).

## Documentación de referencia de la API

* [XGameStreaming (contenido de la API)](/reference/system/xgamestreaming/xgamestreaming_members)
  * Funciones
    * [XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged)

## Consulte también

[XGameStreaming (contenido de la API)](/reference/system/xgamestreaming/xgamestreaming_members#connection-state)
[Optimización del juego](/build/core-features/common/game-streaming/game-streaming-optimizing-your-game)


## Related topics

- [XGameStreamingRegisterConnectionStateChanged](/es/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)
- [Plataformas compatibles con PlayFab](/es/services/playfab/sdks/platforms/index.md)
- [XGameStreaming](/es/reference/system/xgamestreaming/xgamestreaming_members.md)
- [Introducción al streaming de juegos](/es/build/core-features/common/game-streaming/game-streaming-overview.md)
- [Información general sobre usuarios invitados](/es/build/core-features/common/user/users-guest-overview.md)
