Package com.dsi.ant.plugins.antplus.pcc
Class MultiDeviceSearch
java.lang.Object
com.dsi.ant.plugins.antplus.pcc.MultiDeviceSearch
This class allows an application to search for multiple ANT+ device type simultaneously with a
single ANT channel. When searching for many device types this is preferable to AsyncScans as
all multiple device searches occur on a single channel.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Values used by the internal IPC mechanisms.static interface
Callback interface for the RSSI Update eventstatic enum
Values representing whether rssi data is available for the current multi search.static interface
Callback interface for receiving search results and status -
Constructor Summary
ConstructorsConstructorDescriptionMultiDeviceSearch
(android.content.Context context, EnumSet<DeviceType> deviceTypes, MultiDeviceSearch.SearchCallbacks callbacks) Starts a new multiple device search.MultiDeviceSearch
(android.content.Context context, EnumSet<DeviceType> deviceTypes, MultiDeviceSearch.SearchCallbacks callbacks, MultiDeviceSearch.RssiCallback rssiCallback) Starts a new multiple device search. -
Method Summary
-
Constructor Details
-
MultiDeviceSearch
public MultiDeviceSearch(android.content.Context context, EnumSet<DeviceType> deviceTypes, MultiDeviceSearch.SearchCallbacks callbacks) throws IllegalArgumentException Starts a new multiple device search.- Parameters:
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.- Throws:
IllegalArgumentException
- If any of the parameters are null
-
MultiDeviceSearch
public MultiDeviceSearch(android.content.Context context, EnumSet<DeviceType> deviceTypes, MultiDeviceSearch.SearchCallbacks callbacks, MultiDeviceSearch.RssiCallback rssiCallback) throws IllegalArgumentException Starts a new multiple device search. Same asMultiDeviceSearch(Context, EnumSet, SearchCallbacks)
but allows an rssi callback to be specified.- Parameters:
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.- Throws:
IllegalArgumentException
- If any of the parameters are null
-
-
Method Details
-
close
public void close()Stop this multiple device search. -
getMissingDependencyPackageName
-
getMissingDependencyName
- See Also:
-