Zebra LinkOS Multiplatform SDK for Xamarin
1.1
Link-OS Portable Class Library Plugin for Xamarin
|
This is an utility class for performing file operations on a device More...
Public Member Functions | |
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... | |
void | SendFileContents (string filePath) |
Sends the contents of a file to the device. More... | |
This is an utility class for performing file operations on a device
See IPrinterStatus for PreCheckPrinterStatus() and PostPrintCheckStatus() code.
See IConnection for CheckPrinterLanguage() code.
string [] LinkOS.Plugin.Abstractions.IFileUtil.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:
IConnection.SendAndWaitForResponse("! U1 getvar \"file.dir\"\r\n", 3000, 1000); or IConnection.SendAndWaitForResponse("^XA^HWE:*.*^XZ", 3000, 1000);
Implemented in LinkOS.Plugin.ZebraPrinterImplementation.
string [] LinkOS.Plugin.Abstractions.IFileUtil.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:
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 |
Implemented in LinkOS.Plugin.ZebraPrinterImplementation.
void LinkOS.Plugin.Abstractions.IFileUtil.SendFileContents | ( | string | filePath | ) |
Sends the contents of a file to the device.
filePath | the full file path (e.g. "/storage/sdcard1/Download/sample.lbl"). |
Implemented in LinkOS.Plugin.ZebraPrinterImplementation.