

propertyWithStringValue : STRING Optional.Providing no properties to this function will print with default settings. Parametersįull path to local image file on the device. File extension is used to determine its type. Works asynchronously use callback to check the result. PrintFile( STRING filePathOnDevice, HASH options) EB.Printer.getProperty( STRING propertyName).myObject.getProperty( STRING propertyName).STRING : The property to return info about.The propertyName must be a valid property of the API class. This method will return the value of the propertyName that is passed in. EB.Printer.getProperties( ARRAY arrayofNames).myObject.getProperties( ARRAY arrayofNames).HASH : Map of properties I want to know about.The propertyNames must be a valid property of the API class. This method will return a set of object/value pairs for the list of the propertyName that is passed in. EB.Printer.getPrinterByID( STRING printerId).To get valid printerId, use searchPrinters function. Returns null is no printers contains the ID. Returns printer instance specified by printerId. SELF_INSTANCE : Default object of Module.ParametersĪsync Callback Returning Parameters: SELF_INSTANCE For example Camera.getDefault will return a Camera object that represents the default camera. This method will return an object that represents the default instance of the API Class. ParametersĪsync Callback Returning Parameters: HASH This method will return all of object/value pairs for the propertyNames of the API class. Class Method: This method can only be accessed via the API class object.May contain PRINTER_TYPE_ZEBRA, PRINTER_TYPE_EPSON, PRINTER_TYPE_APD, PRINTER_TYPE_NATIVE in any combination. ARRAY : Array of currently supported printer types.
#Zebra for mac update#
To add or remove support for any printer type, update extension list in the build.yml. Each extension is linked to application during build. The result depends on the build configuration. Immediately returns an array with supported printer types. EB.Printer.enumerateSupportedControlLanguages().myObject.enumerateSupportedControlLanguages().ARRAY : Array of supported printer control languages.ParametersĪsync Callback Returning Parameters: ARRAY Returns an array with languages supported by this printer. EB.nnectWithOptions( HASH options)ĭisconnect from a printer and release OS resources.additionalStringOption : STRING Optional.timeout : INTEGER Optional Default: 15000Ĭonnection timeout in milliseconds.After this function call, the printer state is automatically updated. Default Instance: This method can be accessed via the default instance object of this class.Ĭonnect to a printer with user options.Instance Method: This method can be accessed via an instance object of this class:.ParametersĪsync Callback Returning Parameters: STRING **Note: Default options are defined by printer SDK and platform and may vary between different devices. If connection is successful printer state and properties are automatically updated.

Methods connect()Ĭonnect to a printer using default options. This coding is required on each HTML page whenever an individual API will be called from that page.
#Zebra for mac code#
In the code lines above, notice that ebapi.js is included first, followed by eb.printer.js, which is the Printer API for Enterprise Browser. Again, this assumes that relevant API files have been copied to the same directory as the HTML. For instance, to use the Printer API, add the following code to the HTML file(s). To include individual APIs, include the ebapi.js in the HTML, and then the additional required API file(s). Any page on which the modules are required will need to have the required. Note that the path for this file is relative to the current page (index.html). This will define the EB class within the page. For instance, to include the modules file in the app's index.html, copy the modules file to the same directory as the index.html and add the following line to the HEAD section of the app's index.html file: To include all JavaScript APIs, copy the ebapi-modules.js file to a location accessible by the app's files and include the JavaScript modules file in the app. Enterprise Browser/JavaScript Files/Enterprise Browser,Ī directory on the computer that contains the Enterprise Browser installation. There are two methods of enabling the Printer API:Įither way, the included files will be from:
#Zebra for mac android#
The Printer API module provides access to find, connect, and print over Bluetooth, Wi-Fi and USB from Android and Windows Mobile devices.
