Created
July 12, 2016 01:50
-
-
Save marchbold/4bb9a16c226da6893653caa5cf5cafee to your computer and use it in GitHub Desktop.
Stop monitoring a Geofence Region using the Location ANE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var success:Boolean = Location.service.geofences.stopMonitoringRegion( region ); | |
Location.service.geofences.removeEventListener( RegionEvent.START_MONITORING, startMonitoringHandler ); | |
Location.service.geofences.removeEventListener( RegionEvent.STOP_MONITORING, stopMonitoringHandler ); | |
Location.service.geofences.removeEventListener( RegionEvent.ENTER, enterHandler ); | |
Location.service.geofences.removeEventListener( RegionEvent.EXIT, exitHandler ); | |
// com.distriqt.Location |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment