Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marchbold/4bb9a16c226da6893653caa5cf5cafee to your computer and use it in GitHub Desktop.
Save marchbold/4bb9a16c226da6893653caa5cf5cafee to your computer and use it in GitHub Desktop.
Stop monitoring a Geofence Region using the Location ANE
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