public class MultiDeviceSearch
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
MultiDeviceSearch.IpcDefines
Values used by the internal IPC mechanisms.
|
static interface |
MultiDeviceSearch.RssiCallback
Callback interface for the RSSI Update event
|
static class |
MultiDeviceSearch.RssiSupport
Values representing whether rssi data is available for the current multi search.
|
static interface |
MultiDeviceSearch.SearchCallbacks
Callback interface for receiving search results and status
|
Constructor and Description |
---|
MultiDeviceSearch(Context context,
java.util.EnumSet<DeviceType> deviceTypes,
MultiDeviceSearch.SearchCallbacks callbacks)
Starts a new multiple device search.
|
MultiDeviceSearch(Context context,
java.util.EnumSet<DeviceType> deviceTypes,
MultiDeviceSearch.SearchCallbacks callbacks,
MultiDeviceSearch.RssiCallback rssiCallback)
Starts a new multiple device search.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Stop this multiple device search.
|
java.lang.String |
getMissingDependencyName() |
java.lang.String |
getMissingDependencyPackageName() |
public MultiDeviceSearch(Context context, java.util.EnumSet<DeviceType> deviceTypes, MultiDeviceSearch.SearchCallbacks callbacks) throws java.lang.IllegalArgumentException
context
- The context which the search will be bound to.deviceTypes
- The subset of device types to search for.callbacks
- The callbacks that will indicate the status of the search.java.lang.IllegalArgumentException
- If any of the parameters are nullpublic MultiDeviceSearch(Context context, java.util.EnumSet<DeviceType> deviceTypes, MultiDeviceSearch.SearchCallbacks callbacks, MultiDeviceSearch.RssiCallback rssiCallback) throws java.lang.IllegalArgumentException
MultiDeviceSearch(Context, EnumSet, SearchCallbacks)
but allows an rssi callback to be specified.context
- The context which the search will be bound to.deviceTypes
- The subset of device types to search for.callbacks
- The callbacks that will indicate the status of the search.rssiCallback
- The callback that will receive the rssi values of previous search results.java.lang.IllegalArgumentException
- If any of the parameters are nullCopyright © 2015 Dynastream Innovations Inc. All Rights Reserved.