Encoder

object Encoder

Generates Aztec 2D barcodes.

Properties

Link copied to clipboard
const val DEFAULT_AZTEC_LAYERS: Int = 0
Link copied to clipboard
const val DEFAULT_EC_PERCENT: Int = 33

Functions

Link copied to clipboard
fun encode(data: ByteArray, minECCPercent: Int, userSpecifiedLayers: Int): AztecCode

Encodes the given binary content as an Aztec symbol (without ECI code)

fun encode(data: String): AztecCode
fun encode(data: String, minECCPercent: Int, userSpecifiedLayers: Int): AztecCode

Encodes the given string content as an Aztec symbol (without ECI code)

fun encode(data: ByteArray, minECCPercent: Int, userSpecifiedLayers: Int, charset: KiteCharset?): AztecCode

Encodes the given binary content as an Aztec symbol

fun encode(data: String, minECCPercent: Int, userSpecifiedLayers: Int, charset: KiteCharset?): AztecCode

Encodes the given string content as an Aztec symbol

Link copied to clipboard
fun generateModeMessage(compact: Boolean, layers: Int, messageSizeInWords: Int): BitArray
Link copied to clipboard
fun stuffBits(bits: BitArray, wordSize: Int): BitArray