Skip to content

seanho/BeaconMan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BeaconMan

Version Platform

Installation

BeaconMan is available through CocoaPods, to install it simply add the following line to your Podfile:

pod "BeaconMan"

Usage

To run the example project; clone the repo, and run pod install from the Project directory first.

Sample

// register for a beacon region
CLBeaconRegion *region = [[CLBeaconRegion alloc] initWithProximityUUID:uuid identifier:@"TestBeacon"];
[[BCMBeaconManager defaultManager] registerRegion:region enter:^{...} exit:^{...}];

// listen for beacon when it becomes very close and repeat the event every 15 seconds
[[BCMBeaconManager defaultManager] notifyRegionImmediate:region
                                                  repeat:YES
                                                interval:15
                                              usingBlock:^(CLBeacon *beacon) {
                                                  ...
                                              }];

Author

Sean Ho, seanho@thoughtworks.com

License

BeaconMan is available under the MIT license. See the LICENSE file for more info.

About

An easier to use iBeacon API

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors