Skip to content

AmbientStatus/ASLocationMonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASLocationMonitor

Version License Platform

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like AmbientStatus in your projects.

Podfile, Full AmbientStatus

platform :ios, '7.0'
pod "AmbientStatus", "~> 0.1.0"

Podfile, Just ASLocationMonitor:

platform :ios, '7.0'
pod "AmbientStatus/ASLocationMonitor"

Usage

First, add the <ASLocationMonitorDelegate> to whichever file you'd like to use it in.

After you have done so, you have to startMonitoring the user's transit:

ASLocationMonitor *locationMonitor = [ASLocationMonitor sharedInstance]; // create new instance
locationMonitor.delegate = self; // assign the delegate to self

[locationMonitor startMonitoring]; // start monitoring the user's location

After you have created a new sharedInstance of ASTransitMonitor, and have set the delegate, you can implement the following optional delegates if you desire:

- (void)locationMonitor:(ASLocationMonitor *)locationMonitor didEnterNeighborhood:(CLLocation *)location {
    // Do something if the user entered within the neighborhood of a location
}
- (void)locationMonitor:(ASLocationMonitor *)locationMonitor didExitNeighborhood:(CLLocation *)location;
    // Do something if the user exited the neighborhood they had previously entered

For more help, see the documentation.

Credits

Developed by Rudd Fawcett. You can find all of his open source projects on GitHub.

Questions?

Open an issue. I'll try get back to you within 24 hours.

License

AmbientStatus and ASLocationMonitor are available under the MIT license. See the LICENSE file for more info.

About

[Deprecated] Seamlessly update your app based on your user's location.

Resources

License

Stars

Watchers

Forks

Packages

No packages published