Click or drag to resize

UrlPrinterDiscovererFindPrinters(String, DiscoveryHandler, Context) Method

This method will search using a combination of discovery methods to find the printer described by the specified URL. (Windows 10 only)

Namespace: Zebra.Sdk.Printer.Discovery
Assembly: ZebraPrinterSdk (in ZebraPrinterSdk.dll) Version: 3.0.3271
Syntax
public static void FindPrinters(
	string url,
	DiscoveryHandler discoveryHandler,
	Context context
)

Parameters

url  String
The URL describing the targeted printer (Typically, this information is encoded on an NFC tag attached to the printer)
Example:
"http://www.zebra.com/apps/r/nfc?mBL=00225832C75F&mW=000000000000&mE=000000000000&c=QN3-AUBA0E01-00&s=XXQLJ112600422&v=0"
discoveryHandler  DiscoveryHandler
A DiscoveryHandler instance that is used to handle discovery events (e.g. found a printer, errors, discovery finished).
context  Context
Android™ application context.
Exceptions
ExceptionCondition
DiscoveryExceptionIf an error occurs while starting the discovery (errors during discovery will be sent via DiscoveryError(String)).
Remarks
This method will invoke the FoundPrinter(DiscoveredPrinter) method for each interface that the specified printer is found. DiscoveryFinished will be invoked when the discovery is finished and DiscoveryError(String) will be invoked when any errors are encountered during discovery. When DiscoveryError(String) is invoked, the discovery will be canceled and DiscoveryFinished will not be invoked.

This method will typically be used when reading an NFC tag attached to a Zebra printer. To launch your app when a Zebra NFC tag is read:
  • Register to listen for Zebra NFC Tag scans in your application
  • Handle the NFC scan in your application
See Also