Skip to main content
←API Reference ←com.nianticspatial.nsdk.helpers ←LocationHelper

startLocationUpdates


Declaration​

@SuppressLint("MissingPermission") @Synchronized fun startLocationUpdates()

Summary​

Begins receiving GPS updates. Delivers the last known location immediately (if available),
then streams new fixes at ~5-second intervals via OnUpdateListener.onLocationUpdate.
Requires ACCESS_FINE_LOCATIONandroid.Manifest.permission.ACCESS_FINE_LOCATION; no-op
without it, logging a warning once if only approximate location is granted. NSDK's
localization needs precise fixes: an approximate one is blurred to an area kilometres
across. No-op while already started, so it can be called again (for example from every
onResume) without registering a second subscription.