Zebra LinkOS Multiplatform SDK for Xamarin
1.1
Link-OS Portable Class Library Plugin for Xamarin
|
The OS specific implementation of an IZebraPrinter More...
Public Member Functions | |
IFieldDescription[] | GetVariableFields (string formatString) |
Returns a list of descriptors of the variable fields in this format. More... | |
void | PrintStoredFormat (string formatPathOnPrinter, string[] vars) |
Prints a stored format on the printer, filling in the fields specified by the array. The values of any format variables will be encoded using the default encoding type. See System.Text.Encoding for more information about encoding types. More... | |
void | PrintStoredFormat (string formatPathOnPrinter, Dictionary< int, string > vars) |
Prints a stored format on the printer, filling in the fields specified by the Map. The values of any format variables will be encoded using the default encoding type. See System.Text.Encoding for more information about encoding types. More... | |
string[] | RetrieveFileNames () |
Retrieves the names of the files which are stored on the device. This function only works in Link-OS printers. ZebraLink printers may not properly respond to this command. Use: More... | |
string[] | RetrieveFileNames (string[] extensions) |
Retrieves the names of the files which are stored on the device. This method only returns files which have one of the extensions in extensions. This function only works in Link-OS printers. ZebraLink printers may not properly respond to this command. Use: More... | |
byte[] | RetrieveFormatFromPrinter (string formatPathOnPrinter) |
Retrieves a format from the printer. On a ZPL printer, only .ZPL files are supported. On a CPCL printer, only .FMT and .LBL files are supported. This function will only pull CPCL files on ZebraLink Mobile printers (RW, MZ, QL+). More... | |
void | SendFileContents (string filePath) |
Sends the contents of a file to the device. More... | |
void | PrintImage (string imageFilePath, int x, int y, int width=0, int height=0, bool insideFormat=false) |
Prints an image from the connecting device file system to the connected device as a monochrome image. Note: if the image resolution is large(e.g. 1024x768) this method may take a long time to execute or throw an OutOfMemoryError exception. More... | |
void | StoreImage (string printerDriveAndFileName, string imageFilePath, int width, int height) |
Stores the specified image to the connected printer as a monochrome image. The image will be stored on the printer at printerDriveAndFileName with the extension GRF. If a drive letter is not supplied, E will be used as the default (e.g. FILE becomes E:FILE.GRF). If an extension is supplied, it is ignored (E:FILE.BMP becomes E:FILE.GRF). If the image resolution is large (e.g. 1024x768) this method may take a long time to execute or throw an OutOfMemoryError exception. More... | |
void | PrintImage (object os_image, int x, int y, int width=0, int height=0, bool insideFormat=false) |
Prints an image from the connecting device system to the connected device as a monochrome image. Note: if the image resolution is large(e.g. 1024x768) this method may take a long time to execute or throw an OutOfMemoryError exception. More... | |
void | StoreImage (string printerDriveAndFileName, object os_image, int width, int height) |
Stores the specified image to the connected printer as a monochrome image. The image will be stored on the printer at printerDriveAndFileName with the extension GRF. If a drive letter is not supplied, E will be used as the default (e.g. FILE becomes E:FILE.GRF). If an extension is supplied, it is ignored (E:FILE.BMP becomes E:FILE.GRF). If the image resolution is large (e.g. 1024x768) this method may take a long time to execute or throw an OutOfMemoryError exception. More... | |
Additional Inherited Members | |
Properties inherited from LinkOS.Plugin.Abstractions.IZebraPrinter | |
IConnection | Connection [get, set] |
Get the printer's connection. More... | |
IPrinterStatus | CurrentStatus [get] |
Get a new instance of PrinterStatus that can be used to determine the status of a printer. On Zebralink Mobile Printers, this function only works if the printer is not currently printing or processing other data, otherwise returns a MalformedStatusResponse exception. Link-OS and non-Mobile printers can be checked for status while prinintg. More... | |
PrinterLanguage | PrinterControlLanguage [get] |
Get the printer control language (e.g. ZPL or CPCL) of the printer. More... | |
The OS specific implementation of an IZebraPrinter
|
inline |
Returns a list of descriptors of the variable fields in this format.
formatString | the contents of the recalled format. |
Implements LinkOS.Plugin.Abstractions.IFormatUtil.
|
inline |
Prints an image from the connecting device file system to the connected device as a monochrome image. Note: if the image resolution is large(e.g. 1024x768) this method may take a long time to execute or throw an OutOfMemoryError exception.
imageFilePath | Full path to image file. (The image must be either a PNG or JPG). |
x | horizontal starting position in dots. |
y | vertical starting position in dots. |
width | desired width of the printed image. Passing a value less than 1 will preserve original width. |
height | desired height of the printed image. Passing a value less than 1 will preserve original height. |
insideFormat | boolean value indicating whether this image should be printed by itself (false), or is part of a format being written to the connection (true). |
Implements LinkOS.Plugin.Abstractions.IGraphicsUtil.
|
inline |
Prints an image from the connecting device system to the connected device as a monochrome image. Note: if the image resolution is large(e.g. 1024x768) this method may take a long time to execute or throw an OutOfMemoryError exception.
os_image | In Android - Android.Graphics.Bitmap image. In iOS - a CGImageRef image |
x | horizontal starting position in dots. |
y | vertical starting position in dots. |
width | desired width of the printed image. Passing a value less than 1 will preserve original width. |
height | desired height of the printed image. Passing a value less than 1 will preserve original height. |
insideFormat | boolean value indicating whether this image should be printed by itself (false), or is part of a format being written to the connection (true). |
Implements LinkOS.Plugin.Abstractions.IGraphicsUtil.
|
inline |
Prints a stored format on the printer, filling in the fields specified by the array. The values of any format variables will be encoded using the default encoding type. See System.Text.Encoding for more information about encoding types.
formatPathOnPrinter | the name of the format on the printer, including the extension (e.g. "E:FORMAT.ZPL"). |
vars | an array of strings representing the data to fill into the format. For ZPL formats, index 0 of the array corresponds to field number 2 (^FN2). For CPCL, the variables are passed in the order that they are found in the format. |
Implements LinkOS.Plugin.Abstractions.IFormatUtil.
|
inline |
Prints a stored format on the printer, filling in the fields specified by the Map. The values of any format variables will be encoded using the default encoding type. See System.Text.Encoding for more information about encoding types.
formatPathOnPrinter | the location of the file on the printer (e.g. "E:FORMAT.ZPL"). |
vars | a dictionary which contains the key/value pairs for the stored format. For ZPL formats, the key number should correspond directly to the number of the field in the format. For CPCL formats, the values will be passed in ascending numerical order. |
Implements LinkOS.Plugin.Abstractions.IFormatUtil.
|
inline |
Retrieves the names of the files which are stored on the device. This function only works in Link-OS printers. ZebraLink printers may not properly respond to this command. Use:
IConnection.SendAndWaitForResponse("! U1 getvar \"file.dir\"\r\n", 3000, 1000); or IConnection.SendAndWaitForResponse("^XA^HWE:*.*^XZ", 3000, 1000);
Implements LinkOS.Plugin.Abstractions.IFileUtil.
|
inline |
Retrieves the names of the files which are stored on the device. This method only returns files which have one of the extensions in extensions. This function only works in Link-OS printers. ZebraLink printers may not properly respond to this command. Use:
IConnection.SendAndWaitForResponse("! U1 getvar \"file.dir\"\r\n", 3000, 1000); or IConnection.SendAndWaitForResponse("^XA^HWE:*." + extension + "^XZ", 3000, 1000);
extensions | the extensions to filter on |
Implements LinkOS.Plugin.Abstractions.IFileUtil.
|
inline |
Retrieves a format from the printer. On a ZPL printer, only .ZPL files are supported. On a CPCL printer, only .FMT and .LBL files are supported. This function will only pull CPCL files on ZebraLink Mobile printers (RW, MZ, QL+).
formatPathOnPrinter | the location of the file on the printer (e.g. "E:FORMAT.ZPL"). |
Implements LinkOS.Plugin.Abstractions.IFormatUtil.
|
inline |
Sends the contents of a file to the device.
filePath | the full file path (e.g. "/storage/sdcard1/Download/sample.lbl"). |
Implements LinkOS.Plugin.Abstractions.IFileUtil.
|
inline |
Stores the specified image to the connected printer as a monochrome image. The image will be stored on the printer at printerDriveAndFileName with the extension GRF. If a drive letter is not supplied, E will be used as the default (e.g. FILE becomes E:FILE.GRF). If an extension is supplied, it is ignored (E:FILE.BMP becomes E:FILE.GRF). If the image resolution is large (e.g. 1024x768) this method may take a long time to execute or throw an OutOfMemoryError exception.
printerDriveAndFileName | path on the printer where the image will be stored. |
imageFilePath | Full path to image file. (The image must be either a PNG or JPG). |
width | desired width of the printed image, in dots. Passing -1 will preserve original width. |
height | desired height of the printed image, in dots. Passing -1 will preserve original height. |
Implements LinkOS.Plugin.Abstractions.IGraphicsUtil.
|
inline |
Stores the specified image to the connected printer as a monochrome image. The image will be stored on the printer at printerDriveAndFileName with the extension GRF. If a drive letter is not supplied, E will be used as the default (e.g. FILE becomes E:FILE.GRF). If an extension is supplied, it is ignored (E:FILE.BMP becomes E:FILE.GRF). If the image resolution is large (e.g. 1024x768) this method may take a long time to execute or throw an OutOfMemoryError exception.
printerDriveAndFileName | path on the printer where the image will be stored. |
os_image | In Android - Android.Graphics.Bitmap image. In iOS - a CGImageRef image |
width | desired width of the printed image, in dots. Passing -1 will preserve original width. |
height | desired height of the printed image, in dots. Passing -1 will preserve original height. |
Implements LinkOS.Plugin.Abstractions.IGraphicsUtil.