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

startLocationUpdates

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_LOCATION][android.Manifest.permission.ACCESS_FINE_LOCATION]; no-op if the permission is not granted.

Declaration

@SuppressLint("MissingPermission") 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_LOCATION][android.Manifest.permission.ACCESS_FINE_LOCATION]; no-op if the permission is not granted.