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

# XGameStreamingConnectionState

> XGameStreamingConnectionState

# XGameStreamingConnectionState

Contient les états de connexion d'un appareil client de streaming.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
enum class XGameStreamingConnectionState  : uint32_t
{
    Disconnected = 0,
    Connected = 1
}
```

<a id="constantsSection" />

## Constantes

| Constante | Description |
| - | - |
| Disconnected | L'appareil client est actuellement déconnecté. |
| Connected | L'appareil client est actuellement connecté. |

<a id="remarksSection" />

## Remarques

Un appareil peut être dans l'état `Connected` ou `Disconnected`.

[XGameStreamingClientChangedCallback](/fr/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback) est appelé chaque fois qu'un appareil de streaming se connecte ou se déconnecte.

Lors de l'inscription via [XGameStreamingRegisterConnectionStateChanged](/fr/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged), le rappel est appelé pour tout appareil déjà connecté.

<a id="requirementsSection" />

## Configuration requise

**En-tête :** xgamestreaming.h

**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

<a id="seealsoSection" />

## Voir aussi

[XGameStreaming](/fr/reference/system/xgamestreaming/xgamestreaming_members)\
[XGameStreamingClientChangedCallback](/fr/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback)\
[XGameStreamingUnregisterConnectionStateChanged](/fr/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged)\
[XGameStreamingRegisterConnectionStateChanged](/fr/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged)


## Related topics

- [XGameStreamingConnectionState](/zh-CN/reference/system/xgamestreaming/enums/xgamestreamingconnectionstate.md)
- [XGameStreamingConnectionStateChangedCallback](/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback.md)
- [XGameStreamingIsStreaming](/reference/system/xgamestreaming/functions/xgamestreamingisstreaming.md)
- [XGameStreamingGetConnectionState](/reference/system/xgamestreaming/functions/xgamestreaminggetconnectionstate.md)
