Click or drag to resize

UrlPrinterDiscovererFindPrinters Method (String, DiscoveryHandler, Context)

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: 2.15.2521
Syntax
public static void FindPrinters(
	string url,
	DiscoveryHandler discoveryHandler,
	Context context
)

Parameters

url
Type: SystemString
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
Type: Zebra.Sdk.Printer.DiscoveryDiscoveryHandler
A DiscoveryHandler instance that is used to handle discovery events (e.g. found a printer, errors, discovery finished).
context
Type: 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