protected virtual Estimote.BeaconRegion ToNative(BeaconRegion region) { var uuid = new NSUuid(region.Uuid); Estimote.BeaconRegion native = null; if (region.Major > 0 && region.Minor > 0) { native = new Estimote.BeaconRegion(uuid, region.Major.Value, region.Minor.Value, region.Identifier); } else if (region.Major > 0) { native = new Estimote.BeaconRegion(uuid, region.Major.Value, region.Identifier); } else { native = new Estimote.BeaconRegion(uuid, region.Identifier); } native.NotifyEntryStateOnDisplay = true; native.NotifyOnEntry = true; native.NotifyOnExit = true; return(native); }
protected virtual BeaconRegion FromNative(Estimote.BeaconRegion native) { return(new BeaconRegion( native.Identifier, native.ProximityUuid.AsString(), native.Major.UInt16Value, native.Minor.UInt16Value )); }
protected virtual Estimote.BeaconRegion ToNative(BeaconRegion region) { var uuid = new NSUuid(region.Uuid); Estimote.BeaconRegion native = null; if (region.Major > 0 && region.Minor > 0) native = new Estimote.BeaconRegion(uuid, region.Major.Value, region.Minor.Value, region.Identifier); else if (region.Major > 0) native = new Estimote.BeaconRegion(uuid, region.Major.Value, region.Identifier); else native = new Estimote.BeaconRegion(uuid, region.Identifier); native.NotifyEntryStateOnDisplay = true; native.NotifyOnEntry = true; native.NotifyOnExit = true; return native; }