Class Veery
requestLocationUpdate()
Request Veery to be warned when the user has moved.
The best way it's to call this function in the func viewDidLoad(). Or when you need to start a localization.
Parameters
none
Usage / Example
import Foundation import UIKit import Veery class ViewController: UIViewController, VeeryDelegate {// Implement Veery Delegate // TODO : Inside the principal class (!!not inside a function) let veery = Veery() override func viewDidLoad() { super.viewDidLoad() // TODO : Init the delegate veery.delegate = self // TODO : declare your API Key Secret veery.setApiKeySecret("SuPeRScrET12345789GhJ") // TODO : Activate the required function levels (user will be requested to accept geolocation) // veery.activate(service: Veery.GEOPROFILE) // Requires ios Veery 1.3.3 //veery.activate(service:Veery.BACKGROUND_GEOLOC | Veery.COLLECT | Veery.ROUTE_MATCH | Veery.POINT_OF_INTEREST | Veery.PREDICTION) veery.requestLocationUpdate() } @IBAction func stopLocation(_ sender: Any) { veery.stopLocationUpdate() } }
User interaction
none
See also
getCurrentLocation()
Get the last known Location collected by Veery.
requestLocationUpdate()
Request Veery to be warned when the user has moved.
stopLocationUpdate()
Cancel the call to requestLocationUpdate.
veeryDidReceiveNewLocations
Delegate triggered when the user has moved.