GeneratedBindings class

Bindings for src/native_zxing.h.

Regenerate bindings with flutter pub run ffigen --config ffigen.yaml.

Constructors

GeneratedBindings(DynamicLibrary dynamicLibrary)
The symbols are looked up in dynamicLibrary.
GeneratedBindings.fromLookup(Pointer<T> lookup<T extends NativeType>(String symbolName))
The symbols are looked up with lookup.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

encodeBarcode(Pointer<Char> contents, int width, int height, int format, int margin, int eccLevel) EncodeResult
@brief Encode a string into a barcode @param contents The string to encode @param width The width of the barcode in pixels. @param height The height of the barcode in pixels. @param format The format of the barcode @param margin The margin of the barcode @param eccLevel The error correction level of the barcode. Used for Aztec, PDF417, and QRCode only, 0-8. @return The barcode data
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readBarcode(Pointer<Char> bytes, int imageFormat, int format, int width, int height, int cropWidth, int cropHeight, int tryHarder, int tryRotate, int tryInvert) CodeResult
@brief Read barcode from image bytes. @param bytes Image bytes. @param imageFormat Image format. @param format Specify a set of BarcodeFormats that should be searched for. @param width Image width in pixels. @param height Image height in pixels. @param cropWidth Crop width. @param cropHeight Crop height. @param tryHarder Spend more time to try to find a barcode; optimize for accuracy, not speed. @param tryRotate Also try detecting code in 90, 180 and 270 degree rotated images. @return The barcode result.
readBarcodes(Pointer<Char> bytes, int imageFormat, int format, int width, int height, int cropWidth, int cropHeight, int tryHarder, int tryRotate, int tryInvert) CodeResults
@brief Read barcodes from image bytes. @param bytes Image bytes. @param imageFormat Image format. @param format Specify a set of BarcodeFormats that should be searched for. @param width Image width in pixels. @param height Image height in pixels. @param cropWidth Crop width. @param cropHeight Crop height. @param tryHarder Spend more time to try to find a barcode, optimize for accuracy, not speed. @param tryRotate Also try detecting code in 90, 180 and 270 degree rotated images. @return The barcode results.
setLogEnabled(int enable) → void
@brief Enables or disables the logging of the library. @param enable Whether to enable or disable the logging.
toString() String
A string representation of this object.
inherited
version() Pointer<Char>
Returns the version of the zxing-cpp library.

Operators

operator ==(Object other) bool
The equality operator.
inherited