GroupingInfo
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"sortIndex": integer,
"groupingId": string
} |
字段 |
sortIndex |
integer
与其他卡券一起分组时,用于对卡券进行排序的可选索引。排序索引较低的卡券显示在排序索引较高的卡券之前。如果未指定,系统会假定该值为 INT_MAX。对于排序索引相同的两张卡券,排序行为未定义。
|
groupingId |
string
(可选)用于分组显示具有相同 ID 的卡券的分组 ID。可以使用不同类型的卡券进行分组。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):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. |"]]