void RangedBeacons (string UUID)
{
SystemLogger.Log (SystemLogger.Module.PLATFORM, "RangedBeacons UUID " + UUID);
if (UUID != null) {
var uuid = new NSUuid (UUID);
region = new BeaconRegion (uuid, "BeaconSample");
} else {
region = new BeaconRegion (null, "BeaconSample");
}
beaconManager.StartRangingBeacons(region);
//TODO should call other appverse listeners?
beaconDict.Clear();
//beaconArray = new List<Appverse.Core.iBeacon.Beacon> ();
try{
// Declare a timer: same steps in C# and VB
tmr = new Timer();
tmr.AutoReset = false;
tmr.Interval = 5000; // 0.1 second
tmr.Elapsed += timerHandler; // We'll write it in a bit
tmr.Start(); // The countdown is launched!
}catch(Exception e){
SystemLogger.Log (SystemLogger.Module.PLATFORM, "Could not create the timer, STOP mannually. Exception: " + e.Message);
}
}