BluetoothDiscovererFindPrinters Method (Context, DiscoveryHandler, DeviceFilter)
|
Find Bluetooth® devices that are discoverable.
Namespace:
Zebra.Sdk.Printer.Discovery
Assembly:
ZebraPrinterSdk (in ZebraPrinterSdk.dll) Version: 2.15.2521
Syntax public static void FindPrinters(
Context context,
DiscoveryHandler discoveryHandler,
DeviceFilter deviceFilter
)
Public Shared Sub FindPrinters (
context As Context,
discoveryHandler As DiscoveryHandler,
deviceFilter As DeviceFilter
)
public:
static void FindPrinters(
Context^ context,
DiscoveryHandler^ discoveryHandler,
DeviceFilter^ deviceFilter
)
Parameters
- context
- Type: Context
Android™ application context. - discoveryHandler
- Type: Zebra.Sdk.Printer.DiscoveryDiscoveryHandler
a DiscoveryHandler instance that is used to handle discovery events (e.g. found a printer, errors, discovery finished). - deviceFilter
- Type: Zebra.Sdk.Printer.DiscoveryDeviceFilter
Exceptions Remarks This method will return all devices found, not just Zebra printers
Remarks This method should not be called from the application main thread.
Remarks Android 6 and higher (API 23+) requires user permission ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION in your application manifest.
See Also