Barcode
ช่อง |
kind (deprecated) |
string
ระบุประเภทของทรัพยากร ค่า: สตริงคงที่ "walletobjects#barcode"
|
type |
enum (BarcodeType )
ประเภทบาร์โค้ด
|
renderEncoding |
enum (BarcodeRenderEncoding )
การเข้ารหัสการแสดงผลสำหรับบาร์โค้ด เมื่อระบุแล้ว ระบบจะแสดงผลบาร์โค้ดในการเข้ารหัสที่ระบุ มิเช่นนั้น Google จะเลือกการเข้ารหัสที่รู้จักกันดีที่สุด
|
value |
string
ค่าที่เข้ารหัสไว้ในบาร์โค้ด
|
alternateText |
string
ข้อความที่ไม่บังคับซึ่งจะลบล้างข้อความเริ่มต้นที่แสดงใต้บาร์โค้ด ช่องนี้มีไว้สำหรับค่าบาร์โค้ดที่มนุษย์อ่านได้ ซึ่งจะใช้เมื่อสแกนบาร์โค้ดไม่ได้
|
showCodeText |
object (LocalizedString )
ข้อความที่ไม่บังคับซึ่งจะแสดงเมื่อบาร์โค้ดซ่อนอยู่หลังการคลิก กรณีนี้จะเกิดขึ้นเมื่อบัตรเปิดใช้การแตะอัจฉริยะ หากไม่ได้ระบุไว้ Google จะเลือกค่าเริ่มต้นให้
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-13 UTC
[null,null,["อัปเดตล่าสุด 2024-11-13 UTC"],[[["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"]]