Settings
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このリソースのメソッドの一覧は、このページの最後に掲載されています。
リソース表記
Glass の設定です。
{
"kind": "mirror#setting",
"id": string,
"value": string
}
プロパティ名 |
値 |
説明 |
メモ |
id |
string |
設定の ID。次の ID は有効です: locale - ローカライズされたコンテンツのレンダリングに Glassware が使用するユーザーの言語/ロケール(BCP 47 識別子)のキー。 timezone - tz データベースで定義されている、ユーザーの現在のタイムゾーン リージョンのキー。例: America/Los_Angeles 。
|
|
kind |
string |
リソースのタイプ。これは常に mirror#setting です。 |
|
value |
string |
設定値(文字列)。 |
|
メソッド
- get
- ID により 1 つの設定を取得します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\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."]]