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

# XGameStreamingConnectionStateChangedCallback

> XGameStreamingConnectionStateChangedCallback

# XGameStreamingConnectionStateChangedCallback

Fonction de rappel appelée chaque fois que l'état d'un client de diffusion en continu connecté change.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
void XGameStreamingConnectionStateChangedCallback(
         void* context,
         XGameStreamingClientId client,
         XGameStreamingConnectionState state
)
```

<a id="parametersSection" />

### Paramètres

*context*   \_In\_opt\_\
Type : void\*

Contexte fourni lors de l'abonnement à l'événement.

*client*   \_In\_\
Type : XGameStreamingClientId

Appareil client de diffusion en continu auquel l'événement fait référence.

*state*   \_In\_\
Type : [XGameStreamingConnectionState](/fr-CA/reference/system/xgamestreaming/enums/xgamestreamingconnectionstate)

Nouvel état de connexion du client.

<a id="retvalSection" />

### Valeur de retour

Type : void

<a id="remarksSection" />

## Remarques

Le `XGameStreamingClientChangedCallback` est appelé chaque fois qu'un appareil de diffusion en continu se connecte ou se déconnecte.

Lors de l'inscription, ce rappel est également appelé pour chaque appareil connecté.

Lors de l'inscription au moyen de [XGameStreamingRegisterConnectionStateChanged](/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged), le rappel est également appelé pour les appareils déjà connectés.

<a id="requirementsSection" />

## Configuration requise

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

**Bibliothèque :** xgameruntime.lib

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

<a id="seealsoSection" />

## Voir aussi

[XGameStreamingConnectionState](/fr-CA/reference/system/xgamestreaming/enums/xgamestreamingconnectionstate)\
[XGameStreamingUnregisterConnectionStateChanged](/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged)\
[XGameStreamingRegisterConnectionStateChanged](/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged)\
[XGameStreaming](/fr-CA/reference/system/xgamestreaming/xgamestreaming_members)


## Related topics

- [XGameStreamingConnectionStateChangedCallback](/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback.md)
- [XGameStreamingUnregisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged.md)
