Beispiel #1
0
        protected virtual void TryFireEvent(CLRegionEventArgs args, GeofenceStatus status)
        {
            if (!(args.Region is CLCircularRegion native))
            {
                return;
            }

            var region = FromNative(native);

            RegionStatusChanged?.Invoke(this, new GeofenceStatusChangedEventArgs(region, status));
        }
Beispiel #2
0
 protected virtual void OnRegionStatusChanged(GeofenceRegion region, GeofenceStatus status)
 => RegionStatusChanged?.Invoke(this, new GeofenceStatusChangedEventArgs(region, status));