وفي حال ضبط السياسة، سيتم إرسال إشعار إلى حزمة تطوير البرامج (SDK) بأنّ تطبيق المُستلِم
قد تم ضبطه بحيث يتوافق مع واجهة مستخدم تفاعلية. يتيح هذا للمستلِم تعديل
عمليات تخصيص خانة التحكّم في واجهة المستخدم ويعرض شاشة شفافة على المحتوى
عند عرضه. وفي حال إيقافها، لن تكون
شرائح التحكّم قابلة للضبط وستكون نافذة التحكّم المقدَّمة معتمة. عند تشغيل المحتوى الصوتي، ستحل واجهة المستخدم التلقائية محل أي واجهة مستخدم مخصّصة. يتم ضبط هذه العلامة تلقائيًا عند استخدام العنصر Cast-media-player. بالنسبة إلى الأجهزة غير التفاعلية،
ليس لهذه العلامة أي تأثير. في هذه الأجهزة، عند استخدام عنصر Cast-media-player، ستعرض حزمة SDK واجهة المستخدم التلقائية. في حال استخدام عنصر وسائط مخصّص، ستعتمد حزمة تطوير البرامج (SDK) على تطبيق المُستلِم لتحديد عناصر واجهة المستخدم.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\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."]]