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

# XGameStreamingConnectionState

> XGameStreamingConnectionState

Contains the connection states for a streaming client device.

## Syntax

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

## Constants

| Constant | Description |
| - | - |
| Disconnected | The client device is currently disconnected. |
| Connected | The client device is currently connected. |

## Remarks

A device can be in either a `Connected` or a `Disconnected` state.

The [XGameStreamingClientChangedCallback](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback.md) is invoked whenever a streaming device connects or disconnects.

Upon registering via [XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md), the callback is invoked for any device that is already connected.

## Requirements

**Header:** xgamestreaming.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XGameStreaming](https://docs.xbox.com/reference/system/xgamestreaming/xgamestreaming_members.md)\
[XGameStreamingClientChangedCallback](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback.md)\
[XGameStreamingUnregisterConnectionStateChanged](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged.md)\
[XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)


## Related topics

- [XGameStreamingConnectionStateChangedCallback](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback.md)
- [XGameStreamingIsStreaming](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingisstreaming.md)
- [XGameStreamingGetConnectionState](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreaminggetconnectionstate.md)
- [XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)
- [XGameStreaming (API contents)](https://docs.xbox.com/reference/system/xgamestreaming/xgamestreaming_members.md)
