AI-generated Key Takeaways
-
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.
JSON representation |
---|
{ "kind": string, "type": enum ( |
Fields | |
---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
type |
The type of barcode. |
renderEncoding |
The render encoding for the barcode. When specified, barcode is rendered in the given encoding. Otherwise best known encoding is chosen by Google. |
value |
The value encoded in the barcode. |
alternateText |
An optional text that will override the default text that shows under the barcode. This field is intended for a human readable equivalent of the barcode value, used when the barcode cannot be scanned. |
showCodeText |
Optional text that will be shown when the barcode is hidden behind a click action. This happens in cases where a pass has Smart Tap enabled. If not specified, a default is chosen by Google. |