हमारे प्रॉडक्ट के बारे में चर्चा करने और सुझाव/राय देने के लिए, Google विज्ञापन और मेज़रमेंट कम्यूनिटी सर्वर में Ad Manager के आधिकारिक Discord चैनल से जुड़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
UiSettings
classpublic
स्ट्रीम के यूज़र इंटरफ़ेस (यूआई) की सेटिंग.
निर्माता
UiSettings
new
UiSettings()
कंस्ट्रक्टर.
तरीके
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`"]]