Barcode
الحقول |
kind (deprecated) |
string
يحدد نوع هذا المورد. القيمة: السلسلة الثابتة "walletobjects#barcode" .
|
type |
enum (BarcodeType )
تمثّل هذه السمة نوع الرمز الشريطي.
|
renderEncoding |
enum (BarcodeRenderEncoding )
ترميز العرض للرمز الشريطي عند تحديده، يتم عرض الرمز الشريطي في الترميز المحدد. وفي حال عدم توفّر ترميز، تختار Google أفضل ترميز معروف.
|
value |
string
القيمة المشفَّرة في الرمز الشريطي
|
alternateText |
string
نص اختياري يلغي النص التلقائي الذي يظهر أسفل الرمز الشريطي. إنّ هذا الحقل مخصّص لشخص مكافئ لقيمة الرمز الشريطي يمكن قراءته، ويُستخدَم عندما يتعذّر مسح الرمز الشريطي ضوئيًا.
|
showCodeText |
object (LocalizedString )
نص اختياري يتم عرضه عند إخفاء الرمز الشريطي خلف إجراء النقر. ويحدث ذلك في الحالات التي تكون فيها ميزة "الدفع الذكي" مفعّلة في البطاقة. إذا لم يتم تحديد قيمة، سيختار محرّك بحث Google قيمة تلقائية.
|
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-13 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-13 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Barcodes in Google Wallet can be customized with type, rendering encoding, value, alternate text, and display settings for code text."],["The `kind` field is deprecated and should no longer be used."],["`showCodeText` field controls text display when the barcode is hidden, often due to Smart Tap."],["Barcode values can include an optional human-readable `alternateText` for accessibility."]]],["The core content describes the structure and fields of a barcode in a JSON format. Key information includes: `type` specifying the barcode type, `renderEncoding` defining how the barcode is rendered, and `value` containing the encoded data. `alternateText` provides a human-readable alternative, while `showCodeText` offers optional text when the barcode is hidden. The `kind` field is deprecated. The document describes each field's data type.\n"]]