GroupingInfo
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
การแสดง JSON |
{
"sortIndex": integer,
"groupingId": string
} |
ช่อง |
sortIndex |
integer
ดัชนีที่ไม่บังคับสำหรับการจัดเรียงบัตรเมื่อจัดกลุ่มไว้กับบัตรอื่นๆ บัตรที่มีดัชนีการจัดเรียงต่ำกว่าจะแสดงก่อนบัตรผ่านที่มีดัชนีการจัดเรียงสูงกว่า หากไม่ระบุ ระบบจะถือว่าค่านี้เป็น INT_MAX สำหรับบัตร 2 ใบที่มีดัชนีการจัดเรียงเหมือนกัน ระบบจะไม่กำหนดลักษณะการจัดเรียง
|
groupingId |
string
รหัสการจัดกลุ่ม (ไม่บังคับ) สำหรับการจัดกลุ่มบัตรด้วยรหัสเดียวกันเป็นภาพเข้าด้วยกัน อนุญาตให้มีการจัดกลุ่มบัตรประเภทต่างๆ
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\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. |"]]