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

Latest commit

 

History

History
34 lines (20 loc) · 1.55 KB

README.md

File metadata and controls

34 lines (20 loc) · 1.55 KB

⚠️ 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