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"]]