Skip to main content
API Reference com.nianticspatial.nsdk.wps WPSSession

geolocationUpdates

Flow of geolocation updates. This is the primary way to receive geolocation updates in Kotlin. The Flow polls [getDevicePoseAsGeolocation] at regular intervals using the provided pose.

Declaration

fun geolocationUpdates( poseProvider: () -> Pose?, pollingIntervalMs: Long = defaultPollingIntervalMs ): Flow<NSDKResult<GeolocationData, WPSError>>

Summary

Flow of geolocation updates. This is the primary way to receive geolocation updates in Kotlin. The Flow polls [getDevicePoseAsGeolocation] at regular intervals using the provided pose.


ON THIS PAGE