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

# Cloud Aware API 호출

> Cloud Aware API 호출

이 항목을 사용하여 Cloud Aware 타이틀이 스트리밍 가능한지 감지하면 XBOX Game Streaming을 위해 [게임을 최적화](https://docs.xbox.com/ko/build/core-features/common/game-streaming/game-streaming-optimizing-your-game.md)할 수 있습니다.

## 스트리밍을 위한 게임 설정

게임 초기화 중에 다음 코드와 같이 `XGameStreamingInitialize`를 사용하여 게임 스트리밍 구성 요소를 설정했는지 확인합니다.

```C++ theme={null}

// Initialize the game streaming component
XGameStreamingInitialize();

```

현재 연결되어 있는 활성 스트리밍 클라이언트가 있는지 감지하려면 다음 코드와 같이 `XGameStreamingIsStreaming`을 사용합니다.

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

## 연결 상태 관리

활성 스트리밍 클라이언트가 있는 경우, `XGameStreamingIsStreaming`을 사용하면 게임이 해당 시점의 클라이언트 상태를 파악할 수 있습니다. 스트리밍 클라이언트가 게임에 연결하거나 연결이 끊길 때 알림을 받으려면 [XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)를 사용합니다.

## 참조 API 문서

* [XGameStreaming (API 내용)](https://docs.xbox.com/ko/reference/system/xgamestreaming/xgamestreaming_members.md)
  * Functions
    * [XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)

## 참고 항목

[XGameStreaming (API 내용)](https://docs.xbox.com/ko/reference/system/xgamestreaming/xgamestreaming_members.md#connection-state)
[게임 최적화](https://docs.xbox.com/ko/build/core-features/common/game-streaming/game-streaming-optimizing-your-game.md)


## Related topics

- [Xbox Game Streaming 개발 모범 사례](https://docs.xbox.com/ko/build/core-features/common/game-streaming/game-streaming-optimizing-your-game.md)
- [CloudScript에서 Webhook 호출](https://docs.xbox.com/ko/services/playfab/live-service-management/service-gateway/automation/cloudscript/making-webhook-calls-from-cloudscript.md)
- [터치 시작하기](https://docs.xbox.com/ko/build/core-features/common/game-streaming/game-streaming-getting-started-with-touch.md)
- [CloudScript 빠른 시작](https://docs.xbox.com/ko/services/playfab/live-service-management/service-gateway/automation/cloudscript/quickstart.md)
- [스트리밍을 위한 XBOX Development Kit 설정](https://docs.xbox.com/ko/build/core-features/common/game-streaming/game-streaming-setup-xbox-developer-kit.md)
