public class BluetoothLeDiscoverer
extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
findPrinters(android.content.Context context,
DiscoveryHandler discoveryHandler)
Find Bluetooth® devices that are discoverable.
Note: This method will return all Bluetooth® Low Energy Zebra printers. Note: This method should not be called from the application main thread. Note: Android 6 and higher (API 23+) requires user permission ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION in your application manifest. |
static void |
setDiscoveryTimeoutInterval(long mSec) |
public static void findPrinters(android.content.Context context,
DiscoveryHandler discoveryHandler)
throws ConnectionException
context - Android application context.discoveryHandler - a com.zebra.sdk.printer.discovery.DiscoveryHandler instance that is used to handle discovery events (e.g. found a
printer, errors, discovery finished).ConnectionException - for communication or discovery errors.public static void setDiscoveryTimeoutInterval(long mSec)
© 2017 ZIH Corp. All Rights Reserved.