Package-level declarations

Types

Link copied to clipboard

Enumerates barcode formats known to this package. Please keep alphabetized.

Link copied to clipboard
abstract class Binarizer
Link copied to clipboard
class BinaryBitmap(binarizer: Binarizer?)
Link copied to clipboard
Link copied to clipboard

Encapsulates a type of hint that a caller may pass to a barcode reader to help it more quickly or accurately decode it. It is up to implementations to decide what, if anything, to do with the information that is supplied.

Link copied to clipboard
class Dimension(width: Int, height: Int)

Simply encapsulates a width and height.

Link copied to clipboard

These are a set of hints that you may pass to Writers to specify their behavior.

Link copied to clipboard
Link copied to clipboard
abstract class LuminanceSource

The purpose of this class hierarchy is to abstract different bitmap implementations across platforms into a standard interface for requesting greyscale luminance values. The interface only provides immutable methods; therefore crop and rotation create copies. This is to ensure that one Reader does not modify the original luminance source and leave it in an unknown state for other Readers in the chain.

Link copied to clipboard
Link copied to clipboard
interface Reader

Implementations of this interface can decode an image of a barcode in some format into the String it encodes. For example, com.jeluchu.jchucomponents.utils.zxing.qrcode.QRCodeReader can decode a QR code. The decoder may optionally receive hints from the caller which may help it decode more quickly or accurately.

Link copied to clipboard
abstract class ReaderException : Exception
Link copied to clipboard
class Result(val text: String, val rawBytes: ByteArray?, val numBits: Int, var resultPoints: Array<ResultPoint?>, val barcodeFormat: BarcodeFormat?, val timestamp: Long)
Link copied to clipboard
open class ResultPoint(val x: Float, val y: Float)
Link copied to clipboard

Callback which is invoked when a possible result point (significant point in the barcode image such as a corner) is found.

Link copied to clipboard

Functions

Link copied to clipboard
fun Activity.generateQr(@DrawableRes icon: Int, key: String?, width: Int? = 768, height: Int? = 768): Bitmap?
fun Context.generateQr(@DrawableRes icon: Int, key: String?, width: Int? = 768, height: Int? = 768): Bitmap?