Settings
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
للحصول على قائمة من الطرق لهذا المورد، راجِع نهاية هذه الصفحة.
تمثيلات الموارد
أحد إعدادات Glass.
{
"kind": "mirror#setting",
"id": string,
"value": string
}
اسم الموقع |
القيمة |
الوصف |
ملاحظات |
id |
string |
رقم تعريف الإعداد. المعرّفات التالية صالحة: locale - مفتاح لغة المستخدم (معرّف BCP 47) الذي يجب أن تستخدمه Glassware لعرض المحتوى المترجَم. timezone : مفتاح المنطقة الزمنية الحالية للمستخدم كما هو موضّح في قاعدة بيانات tz . مثال: America/Los_Angeles |
|
kind |
string |
نوع المورد. دائمًا ما تكون هذه هي mirror#setting . |
|
value |
string |
قيمة الإعداد، كسلسلة. |
|
الطُرق
- الحصول على
- يحصل على إعداد واحد حسب رقم التعريف.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eA setting for Google Glass is represented as a resource with an ID, value, and kind.\u003c/p\u003e\n"],["\u003cp\u003eSupported setting IDs include \u003ccode\u003elocale\u003c/code\u003e (user's language) and \u003ccode\u003etimezone\u003c/code\u003e (user's time zone).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003evalue\u003c/code\u003e property stores the setting's value as a string.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can retrieve settings by ID using the \u003ccode\u003eget\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,["# Settings\n\n\u003cbr /\u003e\n\nFor a list of [methods](#methods) for this resource, see the end of this page.\n\nResource representations\n------------------------\n\nA setting for Glass.\n\n```text\n{\n \"kind\": \"mirror#setting\",\n \"id\": string,\n \"value\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `id` | `string` | The setting's ID. The following IDs are valid: - `locale` - The key to the user's language/locale ([BCP 47 identifier](/glass/v1/reference/\\\"http:/tools.ietf.org/html/bcp47\\\")) that Glassware should use to render localized content. - `timezone` - The key to the user's current time zone region as defined in the [`tz` database](/glass/v1/reference/\\\"http:/www.twinsun.com/tz/tz-link.htm\\\"). Example: `America/Los_Angeles`. | |\n| `kind` | `string` | The type of resource. This is always `mirror#setting`. | |\n| `value` | `string` | The setting value, as a string. | |\n\nMethods\n-------\n\n[get](/glass/v1/reference/settings/get)\n: Gets a single setting by ID."]]