Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.
/ ReactiveBeacon Public archive

DEPRECATED: ReactiveCocoa bindings for iBeacon activities

License

Notifications You must be signed in to change notification settings

eliperkins/ReactiveBeacon

Repository files navigation

⚠️ This project will no longer be maintained and is deprecated! ⚠️

ReactiveBeacon

Build Status Coverage Version Documentation

ReactiveCocoa bindings for iBeacon activities, mainly monitoring and ranging.

Usage

  • Add pod 'ReactiveBeacon', '~> 0.2.0' to your Podfile
  • pod install
  • #import <ReactiveBeacon/ReactiveBeacon.h>

Monitoring

There are two main methods to monitoring beacon regions.

-fetchPresenceForRegion: will give you the current state of the device in a region. This method will send the @YES or @NO only once and complete. This can be useful for an immediate query on a region.

-presenceForRegion: will give you a signal that will return entrance and exits from a region. Entrances will be marked as @YES, exits as @NO.

Ranging

To range for beacons, listen on the property beaconsInRange. This will return all CLBeacons that are currently in range for the device.

License

ReactiveBeacon is published under the MIT License.

analytics