MethodChannelBradyFlutterPlugin class
An implementation of BradyFlutterPluginPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- BradyFlutterPluginPlatform
- MethodChannelBradyFlutterPlugin
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
-
checkForPartMismatch(
) → Future< bool?> -
checkForPartMismatch() returns a Boolean representing if the selected template was not designed with the supply that is installed in the connected printer.
override
-
connectToBluetoothPrinter(
String? printer) → Future< bool?> -
connectToBluetoothPrinter(String) attempts to connect to a printer via Bluetooth Low Energy whose name is passed into the method. This is asynchronous and returns a Boolean value afterwards with the result of the connection (i.e. success or failure).
override
-
connectToWifiPrinter(
String? printer) → Future< bool?> -
connectToWifiPrinter(String) attempts to connect to a printer via Wi-Fi whose name is passed into the method. This is asynchronous and returns a Boolean value afterwards with the result of the connection (i.e. success or failure).
override
-
cut(
) → Future< bool?> -
cut() asynchronously makes the connected printer perform a cut operation (this can be called right after feed() for testing purposes) and returns a Boolean value afterwards with the result of the cut operation (i.e. success or failure).
override
-
disconnect(
) → Future< bool?> -
disconnect() asynchronously disconnects from the currently connected printer and returns a Boolean value afterwards with the result of the disconnect operation (i.e. success or failure).
override
-
disconnectWithoutForget(
) → Future< bool?> -
disconnectWithoutForget() asynchronously disconnects from the currently connected printer and returns a Boolean value afterwards with the result of the disconnect operation (i.e. success or failure).
override
-
feed(
) → Future< bool?> -
feed() asynchronously makes the connected printer print one empty label and returns a Boolean value afterwards with the result of the feed operation(i.e. success or failure).
override
-
forgetLastConnectedPrinter(
) → void -
forgetLastConnectedPrinter() clears the value of "LastConnectedPrinterName internally preventing auto-connections.
override
-
getAvailablePrinterUpdates(
) → Future< List< String?> > -
getAvailablePrinterUpdates() returns a list of string representing all printer updates that occurred since the last time this method was called.
override
-
getBatteryLevelPercentage(
) → Future< int?> -
getBatteryLevelPercentage() returns a String representing the battery level percentage of the connected printer.
override
-
getConnectionType(
) → Future< String?> -
getConnectionType() returns a String representing the protocol that was used to connect to the printer.
override
-
getHaveOwnership(
) → Future< bool?> -
getHaveOwnership() returns a Boolean representing the mobile device's ownership of a nearby M211.
override
-
getIsAcConnected(
) → Future< bool?> -
getIsAcConnected() returns a Boolean representing if the connect printer is charging.
override
-
getIsSupplyPreSized(
) → Future< bool?> -
getIsSupplyPreSized() returns a Boolean representing if the supply installed in the connected printer is pre-sized. If false, the supply is continuous.
override
-
getLastConnectedPrinterName(
) → Future< String?> -
getLastConnectedPrinterName() returns a String representing the name of the last printer that the app connected to.
override
-
getPreview(
int elementSize) → Future< String?> -
getPreview(Int) takes an Integer that represents the width in screen pixels that the print preview should display as (on the UI).
override
-
getPrinterModel(
) → Future< String?> -
getPrinterModel() returns a String representing the current connected printer's model.
override
-
getPrinterName(
) → Future< String?> -
getPrinterName() returns a String representing the current connected printer's name.
override
-
getPrinters(
) → Future< List< String?> > -
getPrinters() returns a List of Strings representing the printer names that have been discovered via the discovery scan.
Items from this list will only be removed on subsequent launches of the app.
override
-
getPrinterStatus(
) → Future< String?> -
getPrinterStatus() returns a String representing the current printer connection status.
override
-
getPrinterStatusMessage(
) → Future< String?> -
getPrinterStatusMessage() returns a String representing the current printer connection status message.
override
-
getPrinterStatusMessageTitle(
) → Future< String?> -
getPrinterStatusMessageTitle() returns a String representing the current printer connection status message title.
override
-
getPrinterStatusRemedyExplanationMessage(
) → Future< String?> -
getPrinterStatusRemedyExplanationMessage() returns a String representing a solution to resolve the current printer error if there is one.
override
-
getSupplyHeight(
) → Future< double?> -
getSupplyHeight() returns a String representing the height of the supply installed in the connected printer.
override
-
getSupplyName(
) → Future< String?> -
getSupplyName() returns a String representing the supply installed in the connected printer.
override
-
getSupplyRemainingPercentage(
) → Future< int?> -
getSupplyRemainingPercentage() returns a String representing the percentage of supply remaining in the connected printer
override
-
getSupplyWidth(
) → Future< double?> -
getSupplyWidth() returns a String representing the width of the supply installed in the connected printer.
override
-
getTemplateDataNames(
) → Future< List< String> > -
getTemplateDataNames returns all object names on the current template.
override
-
getTemplateSupplyName(
) → Future< String?> -
getTemplateSupplyName() returns the name of the supply that used to design the selected template
override
-
isPrinterBluetooth(
String printerName) → Future< bool?> -
isPrinterBluetooth(String) takes the name of a discovered printer and checks if it was discovered by the Bluetooth Scan
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
print(
int copies, bool cutAfterEachLabel, bool isCollated, bool printTrailer) → Future< bool?> -
print() asynchronously sends a print job of the currently set template to the printer that the app is currently connected to and returns a Boolean value afterwards with the result of the print operation (i.e. success or failure).
override
-
printBitmapWithDimensions(
double bitmapWidthInInches, double labelLengthInInches, int copies, bool cutAfterEachLabel, bool isCollated, bool printTrailer) → Future< bool?> -
printBitmapWithDimensions() asynchronously sends a print job of the currently set template or bitmap image to the printer that the app is currently connected to and returns a Boolean value afterwards with the result of the print operation (i.e. success or failure).
override
-
setPlaceholderValue(
String placeholder, String value) → void -
setPlaceholderValue(String, String) takes two Strings to set a placeholder with a specified value.
override
-
setTemplate(
String filePath) → Future< void> -
setTemplate(String) takes a file path (i.e. 'assets/MyTemplate.BWT' or 'assets/MyImage.PNG') as a string representing a template file or image.
override
-
setTemplateWithBase64(
String base64, bool isTemplate) → void -
setTemplateWithBase64(String, bool) takes a base64 string of data representing a template file
and a boolean that tells the plugin if the file is a template.
override
-
startBlePrinterDiscovery(
) → void -
startBlePrinterDiscovery() starts the Bluetooth scan for nearby Brady Printers. All of the details about these devices are stored internally and can be retrieved using the getPrinters() API method.
override
-
startWifiPrinterDiscovery(
) → void -
startWifiPrinterDiscovery() starts the Bluetooth scan for nearby Brady Printers. All of the details about these devices are stored internally and can be retrieved using the getPrinters() API method.
override
-
stopPrinterDiscovery(
) → void -
stopPrinterDiscovery() stops all discovery scans that were previously started.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited