Package org.altbeacon.beacon
Interface MonitorNotifier
-
- All Known Subinterfaces:
BootstrapNotifier
public interface MonitorNotifierThis interface is implemented by classes that receive beacon monitoring notifications
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddidDetermineStateForRegion(int state, Region region)Called with a state value of MonitorNotifier.INSIDE when at least one beacon in aRegionis visible.voiddidEnterRegion(Region region)Called when at least one beacon in aRegionis visible.voiddidExitRegion(Region region)Called when no beacons in aRegionare visible.
-
-
-
Field Detail
-
INSIDE
static final int INSIDE
Indicates the Android device is inside the Region of beacons- See Also:
- Constant Field Values
-
OUTSIDE
static final int OUTSIDE
Indicates the Android device is outside the Region of beacons- See Also:
- Constant Field Values
-
-
Method Detail
-
didEnterRegion
void didEnterRegion(Region region)
Called when at least one beacon in aRegionis visible.- Parameters:
region- a Region that defines the criteria of beacons to look for
-
didExitRegion
void didExitRegion(Region region)
Called when no beacons in aRegionare visible.- Parameters:
region- a Region that defines the criteria of beacons to look for
-
didDetermineStateForRegion
void didDetermineStateForRegion(int state, Region region)Called with a state value of MonitorNotifier.INSIDE when at least one beacon in aRegionis visible. Called with a state value of MonitorNotifier.OUTSIDE when no beacons in aRegionare visible.- Parameters:
state- either MonitorNotifier.INSIDE or MonitorNotifier.OUTSIDEregion- a Region that defines the criteria of beacons to look for
-
-