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

# Cloud Aware API 호출

> Cloud Aware API 호출

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

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

게임 초기화 중에 다음 코드와 같이 `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](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged)를 사용합니다.

## 참조 API 문서

* [XGameStreaming (API 내용)](/reference/system/xgamestreaming/xgamestreaming_members)
  * Functions
    * [XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged)

## 참고 항목

[XGameStreaming (API 내용)](/reference/system/xgamestreaming/xgamestreaming_members#connection-state)
[게임 최적화](/build/core-features/common/game-streaming/game-streaming-optimizing-your-game)


## Related topics

- [XBOX Game Streaming을 위한 게임 최적화](/ko/build/core-features/common/game-streaming/game-streaming-optimizing-your-game.md)
- [터치 시작하기](/ko/build/core-features/common/game-streaming/game-streaming-getting-started-with-touch.md)
- [CloudScript에서 Webhook 호출](/ko/services/playfab/live-service-management/service-gateway/automation/cloudscript/making-webhook-calls-from-cloudscript.md)
- [PC 핸드헬드 개요](/ko/build/gdk-and-engines/handheld/overview.md)
- [게임 스트리밍 소개](/ko/build/core-features/common/game-streaming/game-streaming-overview.md)
