cutSupply() 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).
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).
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).
feedSupply() 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).
getIsSupplyDirectThermal() returns a Boolean representing if the supply installed in the connected printer is direct thermal and will not have a separate ribbon.
getIsSupplyPreSized() returns a Boolean representing if the supply installed in the connected printer is pre-sized. If false, the supply is continuous.
getPrinters() returns a Map of Strings representing the printer name and how it was discovered via the discovery scan.
Items from this list will only be removed on subsequent launches of the app.
getRibbonColor() returns a Color object representing the color of the ribbon installed in the connected printer (will return black Color if there is no ribbon).
getRibbonName() returns a String representing the ribbon installed in the printer (will return empty string if there is no ribbon). Only the M611 and M710 support ribbons.
getRibbonRemainingPercentage() returns a String representing the percentage of ribbon remaining in the connected printer (will return 0 if there is no ribbon). Only the M611 and M710 support ribbons.
getTemplateData() returns a Map representing all objects on the current template.
The maps keys representing the object name and its value is the type of object it is.
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).
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).
setAutomaticShutoffTime() asynchronously sets the automatic shutdown time of the printer in minutes and returns a Boolean value afterwards with the result of the setAutomaticShutoffTime operation (i.e. success or failure).
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.
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.
startWifiPrinterDiscovery() starts the Wifi scan for nearby Brady Printers. All of the details about these devices are stored internally and can be retrieved using the getPrinters() API method.
suppliesMatch() compares the supply name that is installed in the connected printer and the supply name that the current template was designed with.
Returns true if the supplies match. Otherwise, returns false.