Если этот параметр установлен, SDK будет уведомлен о том, что приложение-получатель настроено на поддержку интерактивного пользовательского интерфейса. Это позволяет получателю изменять назначения UI ControlsSlot и отображать прозрачную сетку поверх содержимого при его представлении. Если этот параметр отключен, ControlsSlots не могут быть настроены, а представленный экран непрозрачен. При воспроизведении аудиоконтента пользовательский интерфейс по умолчанию заменит любой пользовательский интерфейс. Этот флаг устанавливается по умолчанию при использовании элемента cast-media-player. Для неинтерактивных устройств этот флаг не действует. Для этих устройств при использовании элемента cast-media-player SDK будет отображать пользовательский интерфейс по умолчанию. При использовании пользовательского медиа-элемента SDK будет полагаться на приложение-получатель для определения компонентов пользовательского интерфейса.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-24 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,["cast.[framework](/cast/docs/reference/web_receiver/cast.framework).[ui](/cast/docs/reference/web_receiver/cast.framework.ui).UiConfig \nclass static\n\nUI Configuration.\n\nConstructor\n\nUiConfig\n\nnew\nUiConfig()\n\nProperty\n\ntouchScreenOptimizedApp\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."]]