GroupingInfo
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Representasi JSON |
{
"sortIndex": integer,
"groupingId": string
} |
Kolom |
sortIndex |
integer
Indeks opsional untuk mengurutkan kartu saat dikelompokkan dengan kartu lain. Kartu dengan indeks pengurutan yang lebih rendah ditampilkan sebelum penerusan dengan indeks pengurutan yang lebih tinggi. Jika tidak ditentukan, nilainya diasumsikan sebagai INT_MAX. Untuk dua penerusan dengan indeks pengurutan yang sama, perilaku pengurutan tidak ditentukan.
|
groupingId |
string
ID pengelompokan opsional untuk mengelompokkan kartu dengan ID yang sama secara visual. Pengelompokan dengan jenis kartu yang berbeda diizinkan.
|
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 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,["- [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. |"]]