public class AntAdapterProvider
extends java.lang.Object
AdapterInfo
to allow apps to retrieve information about
the underlying hardware. In turn, the AdapterInfo
objects can be used to acquire
channels from its associated adapter.Constructor and Description |
---|
AntAdapterProvider(IBinder binder)
Apps should use
AntService.getAdapterProvider() to
obtain a reference to this object. |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<AdapterInfo> |
getAdaptersInfo(Context context)
Retrieves a collection of adapter related information stored as
AdapterInfo . |
public AntAdapterProvider(IBinder binder)
AntService.getAdapterProvider()
to
obtain a reference to this object. This method should only be used
internally by the lib to create a new AntAdapterProvider
using
the binding obtained from AntService.bindService(Context, ServiceConnection)
to
communicate with the ANT Radio service. This binding should be acquired
by using AntService.ACTION_BIND_ANT_RADIO_SERVICE
.binder
- The service binding used to talk to the ANT Radio service.public java.util.Collection<AdapterInfo> getAdaptersInfo(Context context) throws RemoteException
AdapterInfo
.context
- RemoteException
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.