static void OnBeaconMgrInit(BeaconInitStatus status) { Debug.WriteLine($"Beacon Init Status: {status}"); if (status != BeaconInitStatus.Success) return; EstimoteManager.Instance.RegionStatusChanged += OnBeaconRegionStatusChanged; EstimoteManager.Instance.StopAllMonitoring(); foreach (var region in Regions) { Debug.WriteLine($"Start Monitoring Region: {region}"); EstimoteManager.Instance.StartMonitoring(region); } }
static void OnBeaconMgrInit(BeaconInitStatus status) { Debug.WriteLine($"Beacon Init Status: {status}"); if (status != BeaconInitStatus.Success) { return; } EstimoteManager.Instance.RegionStatusChanged += OnBeaconRegionStatusChanged; EstimoteManager.Instance.StopAllMonitoring(); foreach (var region in Regions) { Debug.WriteLine($"Start Monitoring Region: {region}"); EstimoteManager.Instance.StartMonitoring(region); } }
public async void OnAppearing() { try { _status = await EstimoteManager.Instance.Initialize(); LogStatus = _status != BeaconInitStatus.Success ? @"could not initialice beacons" : @"beacons initialized"; if (_status != BeaconInitStatus.Success) { return; } EstimoteManager.Instance.Ranged += Instance_Ranged; EstimoteManager.Instance.StartRanging(new BeaconRegion(EstimoteConfig.EstimoteName, EstimoteConfig.EstimoteUuidVirtual)); Beacons = new ObservableCollection <ImageCellBeacon>(); } catch (Exception exception) { LogStatus = exception.Message; } }