GroupingInfo
Zapis JSON |
{
"sortIndex": integer,
"groupingId": string
} |
Pola |
sortIndex |
integer
Opcjonalny indeks do sortowania kart, gdy są one zgrupowane z innymi kartami. Karty o niższym indeksie sortowania są wyświetlane przed kartami o wyższym indeksie sortowania. Jeśli wartość nie jest określona, przyjmuje się wartość równą INT_MAX. W przypadku dwóch kart o tym samym indeksie sortowania działanie sortowania jest niezdefiniowane.
|
groupingId |
string
Opcjonalny identyfikator grupowania, który służy do wizualnego grupowania kart z tym samym identyfikatorem. Grupowanie różnych typów kart jest dozwolone.
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-13 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-13 UTC."],[[["JSON representation defines the structure for organizing passes within a digital wallet."],["`sortIndex` is an optional integer field used for ordering passes visually, with lower values appearing first."],["`groupingId` is an optional string field enabling visual grouping of passes, potentially of different types, based on shared ID."]]],["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"]]