public class BeaconManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
BeaconManager.BeaconListener
BeaconListener defines the interface that BeaconManagers call for finding, losing,
and changing beacons
|
Constructor and Description |
---|
BeaconManager(android.content.Context context,
BeaconManager.BeaconListener listener)
Default constructor for BeaconManagers
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(Filter filter)
Adds a filter to the BeaconManager
|
boolean |
beaconIsFiltered(Beacon beacon)
Indicates that a beacon is filtered
|
java.util.List<Beacon> |
getBeacons() |
boolean |
isScanning() |
void |
removeAllFilters()
Removes all filters that are applied to this BeaconManager
|
void |
removeFilter(Filter filter)
Removes a filter from the BeaconManager
|
void |
startScanning()
Starts scanning for beacons
|
void |
stopScanning()
Stops scanning for beacons
|
public BeaconManager(android.content.Context context, BeaconManager.BeaconListener listener)
context
- listener
- public void startScanning()
public void stopScanning()
public boolean isScanning()
public void addFilter(Filter filter)
filter
- the Filter
to be addedpublic void removeFilter(Filter filter)
filter
- the Filter
to be removedpublic void removeAllFilters()
public boolean beaconIsFiltered(Beacon beacon)
beacon
- the Beacon
to be checked