コード例 #1
0
 public void stopMonitoringRegion(Region regionToStopMonitoring) {
   org.altbeacon.beacon.Region stoppedMonitorRegion =
       getAltBeaconRegionFromWMRegion(regionToStopMonitoring);
   try {
     mBeaconManager.stopRangingBeaconsInRegion(stoppedMonitorRegion);
   } catch (RemoteException e) {
     Log.println(Log.ERROR, "stopMonitoringRegion", e.getMessage());
   }
 }
コード例 #2
0
 /** Called when no beacons in a Region are visible. */
 @Override
 public void didExitRegion(Region region) {
   LogManager.d(TAG, "didExitRegion(),region uniqueId= " + region.getUniqueId());
   /**
    * Tells the BeaconService to stop looking for beacons that match the passed Region object
    * and providing mDistance information for them.
    */
   try {
     mBeaconManager.stopRangingBeaconsInRegion(ALL_VOLIAM_BEACONS_REGION);
   } catch (RemoteException e) {
     LogManager.d(TAG, "RemoteException:" + e.toString());
   }
 }