Settings
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
google.maps.Settings
class
الإعدادات التي تتحكّم في سلوك واجهة برمجة التطبيقات JavaScript لـ "خرائط Google" ككل
يمكنك الوصول إليه من خلال الاتصال بالرقم const {Settings} = await google.maps.importLibrary("core")
. اطّلِع على المكتبات في واجهة برمجة تطبيقات JavaScript للخرائط.
الطرق الثابتة |
getInstance |
getInstance()
المَعلمات: بدون
تعرِض مثيلًا فرديًا من google.maps.Settings . |
الخصائص |
experienceIds
|
مجموعة من أرقام تعريف التجارب الفريدة التي يمكن إسناد طلبات البيانات من واجهة برمجة التطبيقات JavaScript لتطبيق "خرائط Google" إليها القيمة المعروضة هي نسخة من القيمة الداخلية المخزّنة في مثيل Settings الفردي لفئة Settings . وبالتالي، لن تعدّل العمليات التي يتم إجراؤها على google.maps.Settings.getInstance().experienceIds سوى النسخة وليس القيمة الداخلية.
لتعديل القيمة الداخلية، اضبط السمة على القيمة الجديدة في مثيل العنصر الفردي (مثل google.maps.Settings.getInstance().experienceIds = [experienceId]; ). |
fetchAppCheckToken |
تعرِض وعدًا يؤدي إلى نتيجة رمز مميّز لفحص التطبيق في Firebase. يتم إرفاق الرمز المميّز بطلبات gRPC كعنوان HTTP "X-Firebase-AppCheck". إذا كان الرمز المميّز فارغًا، لن يتم إرفاق العنوان. |
google.maps.MapsAppCheckTokenResult
واجهة
يصف نتيجة رمز مميّز لميزة "فحص التطبيقات من Firebase".
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-12-22 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-12-22 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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."]]