Uri
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
"kind": string,
"uri": string,
"description": string,
"localizedDescription": {
object (LocalizedString )
},
"id": string
} |
欄位 |
kind (deprecated) |
string
標示資源的種類。值:固定字串 "walletobjects#uri" 。
|
uri |
string
網頁、圖片或其他資源的所在位置。LinksModuleData 模組中的 URI 可以用不同的前置字元來表示 URI 的類型 (網頁連結、地圖連結、電話號碼或電子郵件地址)。URI 必須設有配置。
|
description |
string
URI 的標題會以文字顯示在應用程式中。建議長度上限為 20 個字元,以確保在較小的螢幕上可顯示完整字串。 請注意,在某些情況下,系統不會使用這串文字,例如當 description 是圖片的一部分時。
|
localizedDescription |
object (LocalizedString )
說明的翻譯字串。建議長度上限為 20 個字元,以確保在較小的螢幕上可顯示完整字串。
|
id |
string
URI 相關聯的 ID。這個欄位可方便您管理 URI。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eURI provides a way to link external resources like web pages, images, maps, or contact information within a Wallet Object.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a URI, description, localized descriptions, and an optional ID for management purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ekind\u003c/code\u003e field is deprecated and should not be used.\u003c/p\u003e\n"],["\u003cp\u003eDescriptions should be kept concise, ideally under 20 characters, for optimal display.\u003c/p\u003e\n"],["\u003cp\u003eLocalized descriptions allow for tailoring the URI's title for different languages.\u003c/p\u003e\n"]]],["The JSON representation defines a resource with fields for `kind` (deprecated), `uri`, `description`, `localizedDescription`, and `id`. `uri` stores the location of a web resource, while `description` and `localizedDescription` provide textual titles, with a 20-character recommendation. The `id` field enables easier URI management. The `kind` identifies the resource type, but is marked as deprecated. Various URI prefixes indicate the link's nature (web, map, phone, email).\n"],null,["# Uri\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"uri\": string, \"description\": string, \"localizedDescription\": { object (/wallet/reference/rest/v1/LocalizedString) }, \"id\": string } ``` |\n\n| Fields ||\n|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` **(deprecated)** | `string` | This item is deprecated! Identifies what kind of resource this is. Value: the fixed string `\"walletobjects#uri\"`. |\n| `uri` | `string` The location of a web page, image, or other resource. URIs in the `LinksModuleData` module can have different prefixes indicating the type of URI (a link to a web page, a link to a map, a telephone number, or an email address). URIs must have a scheme. |\n| `description` | `string` The URI's title appearing in the app as text. Recommended maximum is 20 characters to ensure full string is displayed on smaller screens. Note that in some contexts this text is not used, such as when `description` is part of an image. |\n| `localizedDescription` | `object (`[LocalizedString](/wallet/reference/rest/v1/LocalizedString)`)` Translated strings for the description. Recommended maximum is 20 characters to ensure full string is displayed on smaller screens. |\n| `id` | `string` The ID associated with a uri. This field is here to enable ease of management of uris. |"]]