Crate wascan
Source - init_reader
- Initializes the reader module. Must be called before using
read_from_image. - init_scanner
- Initializes the scanner module. Must be called before using
start_stream_scan. - main_js
- WASM entry point
- on_detect
- Registers a callback function to be called when a barcode is detected.
- on_start
- Registers a callback function to be called when scanning starts.
- on_stop
- Registers a callback function to be called when scanning stops.
- read_from_image
- Triggers the file input dialog to read an image file.
- start_stream_scan
- Starts the stream-based barcode scanning from the camera.
- stop_stream_scan
- Stops the stream scanning programmatically.