helpers
Classes
| Name | Type | Summary |
|---|---|---|
| LocationHelper | LocationHelper | |
| SensorHelper | SensorHelper | Reads compass (heading) and raw magnetometer data from Android sensors and exposes it as a [Compass] snapshot. Used internally by [DefaultSessionDataSource]. Call [resume] when the owning component becomes active and [pause] when it is paused to conserve battery. |
Interfaces
| Name | Type | Summary |
|---|---|---|
| LocationHelper.OnUpdateListener | OnUpdateListener | Callback interface for receiving GPS location updates. |
Functions
| Name | Type | Summary |
|---|---|---|
| createLiveDataSource | NsdkSessionDataSource | Creates a live ARCore data source that manages GPS and compass sensors internally. The returned object also implements [DefaultLifecycleObserver]: add it to your Activity's or Fragment's lifecycle. The compass starts on resume, so without a lifecycle it reports no samples; GPS and compass stop on pause and destroy. GPS needs ACCESS_FINE_LOCATION, andstarts on its own once it is granted; with only approximate location it stays off and logs a warning. |
| createPlaybackDataSource | NsdkSessionDataSource | Creates a playback data source that converts dataset bitmaps to YUV on a background thread. The returned object implements [DefaultLifecycleObserver] — add it to your lifecycle for cleanup on destroy. |
on each new fix. Used internally by [DefaultSessionDataSource].