GroupingInfo
تمثيل JSON |
{
"sortIndex": integer,
"groupingId": string
} |
الحقول |
sortIndex |
integer
مؤشر اختياري لترتيب البطاقات عند تجميعها مع بطاقات أخرى تظهر البطاقات ذات فهرس الترتيب الأدنى قبل البطاقات ذات فهرس الترتيب الأعلى. إذا لم يتم تحديد قيمة، يُفترض أن تكون القيمة هي INT_MAX. بالنسبة إلى مرّتَي المرور باستخدام فهرس الترتيب نفسه، يكون سلوك الترتيب غير محدّد.
|
groupingId |
string
معرّف تجميع اختياري لتجميع البطاقات التي تحمل المعرّف نفسه معًا بشكل مرئي يُسمح بالتجميع مع أنواع مختلفة من البطاقات.
|
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-13 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-13 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]