class CLLocationManager
Public Class Methods
enable(enable)
click to toggle source
# File spec/motion/location/location_spec.rb, line 15 def self.enable(enable) @enabled = enable end
locationServicesEnabled()
click to toggle source
# File spec/motion/location/location_spec.rb, line 23 def self.locationServicesEnabled return true if @enabled.nil? @enabled end
Public Instance Methods
startMonitoringSignificantLocationChanges()
click to toggle source
# File spec/motion/location/location_spec.rb, line 49 def startMonitoringSignificantLocationChanges @startMonitoringSignificantLocationChanges = true end
startUpdatingHeading()
click to toggle source
# File spec/motion/location/location_spec.rb, line 41 def startUpdatingHeading @startUpdatingHeading = true end
startUpdatingLocation()
click to toggle source
# File spec/motion/location/location_spec.rb, line 33 def startUpdatingLocation @startUpdatingLocation = true end
stopMonitoringSignificantLocationChanges()
click to toggle source
# File spec/motion/location/location_spec.rb, line 53 def stopMonitoringSignificantLocationChanges @stopMonitoringSignificantLocationChanges = true end
stopUpdatingHeading()
click to toggle source
# File spec/motion/location/location_spec.rb, line 45 def stopUpdatingHeading @stopUpdatingHeading = true end
stopUpdatingLocation()
click to toggle source
# File spec/motion/location/location_spec.rb, line 37 def stopUpdatingLocation @stopUpdatingLocation = true end