GroupingInfo
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
"sortIndex": integer,
"groupingId": string
} |
欄位 |
sortIndex |
integer
當票證與其他票證一起分組時,用來排序的選用索引。排序索引較低的票證會顯示在排序索引較高的票證之前。如未指定,系統會假設該值為 INT_MAX。針對具有相同排序索引的兩個票證,排序行為未定義。
|
groupingId |
string
選用群組 ID,可將含有相同 ID 的票證以視覺化方式分組。可以使用不同類型的票證進行分組。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eJSON representation defines the structure for organizing passes within a digital wallet.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esortIndex\u003c/code\u003e is an optional integer field used for ordering passes visually, with lower values appearing first.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egroupingId\u003c/code\u003e is an optional string field enabling visual grouping of passes, potentially of different types, based on shared ID.\u003c/p\u003e\n"]]],["The core content describes a JSON structure for organizing passes. It uses two fields: `sortIndex` (integer) and `groupingId` (string). `sortIndex` determines the display order of passes within a group; lower values appear first, with a default of INT_MAX if unspecified. `groupingId` allows passes with different types to be visually grouped together based on shared IDs. Sorting is undefined for passes with the same `sortIndex`.\n"],null,["# GroupingInfo\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\n| JSON representation |\n|--------------------------------------------------------|\n| ``` { \"sortIndex\": integer, \"groupingId\": string } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `sortIndex` | `integer` Optional index for sorting the passes when they are grouped with other passes. Passes with lower sort index are shown before passes with higher sort index. If unspecified, the value is assumed to be INT_MAX. For two passes with the same sort index, the sorting behavior is undefined. |\n| `groupingId` | `string` Optional grouping ID for grouping the passes with the same ID visually together. Grouping with different types of passes is allowed. |"]]