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

createLiveDataSource


Declaration​

fun createLiveDataSource( context: Context, frameProvider: () -> Frame?, orientationProvider: () -> Orientation ): NsdkSessionDataSource

Summary​

Creates a live ARCore data source that manages GPS and compass sensors internally.


The returned object implements DefaultLifecycleObserver — add it to your lifecycle
to automatically start/stop sensor listeners.