Settings
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源表示形式
针对 Glass 的设置。
{
"kind": "mirror#setting",
"id": string,
"value": string
}
属性名称 |
值 |
说明 |
备注 |
id |
string |
设置的 ID。有效的 ID 如下:locale - 用户语言/语言区域的键(BCP 47 标识符),Glassware 应使用该键呈现本地化内容。 timezone - 用户当前时区区域的键,如 tz 数据库中所定义。示例:America/Los_Angeles 。
|
|
kind |
string |
资源类型。始终为 mirror#setting 。 |
|
value |
string |
设置值,以字符串表示。 |
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):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."]]