GeneratedBindings class
Bindings for src/native_zxing.h
.
Regenerate bindings with flutter pub run ffigen --config ffigen.yaml
.
Constructors
- GeneratedBindings.new(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. Owned pointer. Will be freed by native code.
@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< Uint8> bytes, int imageFormat, int format, int width, int height, int cropWidth, int cropHeight, bool tryHarder, bool tryRotate, bool tryInvert) → CodeResult - @brief Read barcode from image bytes. @param bytes Image bytes. Owned pointer. Will be freed by native code. @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< Uint8> bytes, int imageFormat, int format, int width, int height, int cropWidth, int cropHeight, bool tryHarder, bool tryRotate, bool tryInvert) → CodeResults - @brief Read barcodes from image bytes. @param bytes Image bytes. Owned pointer. Will be freed by native code. @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(
bool enabled) → void - @brief Enables or disables the logging of the library.
-
toString(
) → String -
A string representation of this object.
inherited
-
version(
) → Pointer< Char> - Returns the version of the zxing-cpp library. Pointer has a static lifetime and must not be freed.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited