public interface CBMonitoringListener
Cubeacon.addMonitoringListener(CBMonitoringListener)
,
Cubeacon.startMonitoringForRegion(CBRegion)
,
MonitoringState
,
CBRegion
Modifier and Type | Method and Description |
---|---|
void |
didDetermineStateForRegion(MonitoringState state,
CBRegion region)
Called with a state value of CBMonitoringListener.INSIDE when at least one beacon in a
CBRegion is visible.
|
void |
didEnterRegion(CBRegion region)
Called when at least one beacon in a CBRegion is visible.
|
void |
didExitRegion(CBRegion region)
Called when no beacons in a CBRegion are visible.
|
void didEnterRegion(CBRegion region)
region
- a CBRegion that defines the criteria of beacons to look forvoid didExitRegion(CBRegion region)
region
- a CBRegion that defines the criteria of beacons to look forvoid didDetermineStateForRegion(MonitoringState state, CBRegion region)
state
- either MonitoringState.INSIDE
or MonitoringState.OUTSIDE
region
- a CBRegion that defines the criteria of beacons to look for