קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
UiSettings
classpublic
הגדרות ממשק המשתמש של השידור.
יצרן
UiSettings
new UiSettings()
יוצר.
Methods
getLocale
הפונקציה getLocale() מחזירה מחרוזת
הפונקציה מחזירה את הגדרת השפה והאזור שמוגדרת לשידור.
החזרות
string
setLocale
הפונקציה setLocale(locale) מחזירה void
הגדרת האזור שהוגדר על ידי בעל התוכן הדיגיטלי. צריך להפעיל את הפונקציה הזו לפני שיוצרים את StreamManager. האזור גיאוגרפי מציין את השפה שבה יוצגו רכיבי ממשק המשתמש. הקודים הנתמכים מפורטים במאמר
התאמה לשוק המקומי לפי שפה ולוקאל.
[null,null,["עדכון אחרון: 2025-08-21 (שעון UTC)."],[],[],null,["# Class: UiSettings\n\nUiSettings\n==========\n\nclass public\n\nStream UI Settings.\n\nConstructor\n-----------\n\n### UiSettings\n\nnew\nUiSettings()\n\nConstructor.\n\nMethods\n-------\n\n### getLocale\n\ngetLocale() returns string\n\nReturns the locale set for the stream.\n\nReturns\n\n: `string`\n\n### setLocale\n\nsetLocale(locale) returns void\n\nSets the publisher provided locale. Must be called before creating\nStreamManager. The locale specifies the language\nin which to display UI elements. The supported codes can be found in\n[Localizing for Language and Locale](/ad-manager/dynamic-ad-insertion/sdk/html5/localization).\n\n| #### Parameter ||\n|--------|-----------------------------------|\n| locale | string Publisher provided locale. |\n\nReturns\n\n: `void`"]]