MethodChannelQrScannerMaster class
An implementation of QrScannerMasterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- QrScannerMasterPlatform
- MethodChannelQrScannerMaster
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
generateQrCode(
String data, QrGenerationOptions options) → Future< Uint8List> -
Generates a QR code with the given data and options
override
-
getAvailableCameras(
) → Future< List< String> > -
Gets available camera devices
override
-
getPlatformVersion(
) → Future< String?> -
Gets the platform version
override
-
getSupportedFormats(
) → Future< List< String> > -
Gets supported barcode formats
override
-
hasCameraPermission(
) → Future< bool> -
Checks if the device has camera permission
override
-
hasFlash(
) → Future< bool> -
Checks if flash is available on the device
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseScanner(
) → Future< void> -
Pauses the camera scanner
override
-
requestCameraPermission(
) → Future< bool> -
Requests camera permission
override
-
resumeScanner(
) → Future< void> -
Resumes the camera scanner
override
-
scanFromBytes(
Uint8List imageBytes, ScanOptions options) → Future< List< QrScanResult> > -
Scans QR/Barcode from image bytes
override
-
scanFromImage(
String imagePath, ScanOptions options) → Future< List< QrScanResult> > -
Scans QR/Barcode from an image file
override
-
scanWithCamera(
ScanOptions options) → Future< QrScanResult?> -
Starts the camera scanner with the given options
override
-
stopScanner(
) → Future< void> -
Stops the camera scanner
override
-
toggleFlash(
bool enable) → Future< void> -
Toggles the camera flash
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited