Settings
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
google.maps.Settings
क्लास
ऐसी सेटिंग जो Maps JavaScript API के पूरे व्यवहार को कंट्रोल करती हैं.
const {Settings} = await google.maps.importLibrary("core")
को कॉल करके ऐक्सेस करें. Maps JavaScript API में लाइब्रेरी देखें.
स्टैटिक तरीके |
getInstance |
getInstance()
पैरामीटर: कोई नहीं
google.maps.Settings का सिंगलटन इंस्टेंस दिखाता है.
|
प्रॉपर्टी |
experienceIds
|
यूनीक एक्सपीरियंस आईडी का कलेक्शन, जिसमें Maps JS API कॉल को एट्रिब्यूट किया जाता है. रिटर्न की गई वैल्यू, Settings क्लास के सिंगलटन इंस्टेंस में सेव की गई इंटरनल वैल्यू की कॉपी होती है. इसलिए, google.maps.Settings.getInstance().experienceIds पर किए जाने वाले ऑपरेशन से सिर्फ़ कॉपी में बदलाव होगा, न कि अंदरूनी वैल्यू में.
अंदरूनी वैल्यू को अपडेट करने के लिए, सिंगलटन इंस्टेंस (उदाहरण के लिए: google.maps.Settings.getInstance().experienceIds = [experienceId]; ) पर प्रॉपर्टी को नई वैल्यू के बराबर सेट करें. |
fetchAppCheckToken |
एक प्रॉमिस दिखाता है, जो Firebase ऐप्लिकेशन की जांच के टोकन के नतीजे पर लागू होता है. टोकन को gRPC अनुरोधों में "X-Firebase-AppCheck" एचटीटीपी हेडर के तौर पर अटैच किया जाता है. अगर टोकन खाली है, तो हेडर अटैच नहीं किया जाता. |
google.maps.MapsAppCheckTokenResult
इंटरफ़ेस
Firebase App Check टोकन के नतीजे के बारे में बताता है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-12-22 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-12-22 (UTC) को अपडेट किया गया."],[],[],null,["# Settings\n\nThe documentation for has moved to a different page.\n\nThe documentation for the linked item could not be found. \n\n[Settings](#Settings)\nclass\n---------------------------\n\n\ngoogle.maps`.`Settings\nclass\n\nSettings which control the behavior of the Maps JavaScript API as a whole.\n\nAccess by calling `const {Settings} = await google.maps.importLibrary(\"core\")`. \nSee [Libraries in the Maps JavaScript API](/maps/documentation/javascript/libraries).\n\n| ### Static Methods ||\n|--------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [getInstance](#Settings.getInstance) | `getInstance()` **Parameters:** None **Return Value:** [Settings](/maps/documentation/javascript/reference/settings#Settings) Returns the singleton instance of `google.maps.Settings`. |\n\n| ### Properties ||\n|----------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [experienceIds](#Settings.experienceIds) | **Notice:** Available only in the [v=beta channel](/maps/documentation/javascript/versions#choosing-the-beta-channel). **Type:** [Iterable](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Iteration_protocols#the_iterable_protocol)`\u003cstring\u003e` A collection of unique experience IDs to which to attribute Maps JS API calls. The returned value is a copy of the internal value that is stored in the `Settings` class singleton instance. Operations on `google.maps.Settings.getInstance().experienceIds` will therefore only modify the copy and not the internal value. To update the internal value, set the property equal to the new value on the singleton instance (ex: `google.maps.Settings.getInstance().experienceIds = [experienceId];`). |\n| [fetchAppCheckToken](#Settings.fetchAppCheckToken) | **Type:** `function(): `[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)`\u003c`[MapsAppCheckTokenResult](/maps/documentation/javascript/reference/settings#MapsAppCheckTokenResult)`\u003e` Set this property to a function that returns a promise which resolves to a Firebase App Check token result. |\n\n[MapsAppCheckTokenResult](#MapsAppCheckTokenResult)\ninterface\n-------------------------------------------------------------\n\n\ngoogle.maps`.`MapsAppCheckTokenResult\ninterface\n\nDescribes a Firebase App Check token result."]]