이 속성을 설정하면 수신기 애플리케이션이 양방향 UI를 지원하도록 구성되었다는 알림이 SDK에 전송됩니다. 이렇게 하면 수신기에서 UI ControlsSlot 할당을 수정할 수 있으며 콘텐츠가 표시될 때 콘텐츠 위에 투명한 스크림이 표시됩니다. 사용 중지하면 ControlsSlot을 구성할 수 없으며 제공되는 스크림이 불투명합니다. 오디오 콘텐츠를 재생할 때 기본 UI가 모든 맞춤 UI를 대체합니다. 이 플래그는 Cast 미디어 플레이어 요소를 사용하는 경우 기본적으로 설정됩니다. 비대화형 기기의 경우 이 플래그는 효과가 없습니다. 이러한 기기의 경우 Cast-media-player 요소를 사용하는 경우 SDK가 기본 UI를 렌더링합니다. 맞춤 미디어 요소를 사용하는 경우 SDK는 수신기 애플리케이션에 의존하여 UI 구성요소를 정의합니다.
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003e\u003ccode\u003eUiConfig\u003c/code\u003e provides configuration options for the user interface of a Cast receiver application.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etouchScreenOptimizedApp\u003c/code\u003e property indicates whether the receiver app is interactive, influencing UI control assignments and scrim behavior.\u003c/p\u003e\n"],["\u003cp\u003eWhen playing audio, the default UI will override any custom UI, especially on non-interactive devices.\u003c/p\u003e\n"],["\u003cp\u003eIf using a custom media element on non-interactive devices, the receiver app is responsible for defining the UI components.\u003c/p\u003e\n"]]],[],null,["# Class: UiConfig\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[ui](/cast/docs/reference/web_receiver/cast.framework.ui).UiConfig\n=====================================================================================================================================\n\nclass static\n\nUI Configuration.\n\nConstructor\n-----------\n\n### UiConfig\n\nnew\nUiConfig()\n\nProperty\n--------\n\n### touchScreenOptimizedApp\n\n(boolean or undefined)\n\nIf set, the SDK will be notified that the receiver application is\nconfigured to support an interactive UI. This allows the receiver to\nmodify the UI ControlsSlot assignments and shows a transparent scrim over\nthe content when presented. If disabled, the ControlsSlots are not\nconfigurable and the scrim presented is opaque. When playing audio\ncontent the default UI will replace any custom UI. This flag is set by\ndefault when using the cast-media-player element. For non-interactive\ndevices this flag has no effect. For these devices if using the\ncast-media-player element, the SDK will render default UI. If using a\ncustom media element the SDK will rely on the receiver application to\ndefine the UI components."]]