IndoorsLocationDataSource

class IndoorsLocationDataSource : LocationDataSource

Provides an indoor or outdoor position based on device sensor data (radio, GPS, motion sensors). An IPS (indoor positioning system) position is calculated based on radio data and motion sensors. The GPS position is used as a fallback in case an IPS position can't be calculated, or if the IPS position reports a position outside of a building.

Constructors

Link copied to clipboard
fun IndoorsLocationDataSource(    positioningTable: FeatureTable,     pathwaysTable: ArcGISFeatureTable? = null,     positioningId: Guid? = null)

Create a new IndoorsLocationDataSource from the given feature table and row in the "IPS_Positioning" FeatureTable. See the ArcGIS IPS Information Model for more information.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun start(): Result<Unit>

Start the location data source asynchronously.

Link copied to clipboard
suspend fun stop(): Result<Unit>

Stop the location data source asynchronously.

Properties

Link copied to clipboard
val error: StateFlow<Throwable?>

An error that describes a problem encountered while starting or running the LocationDataSource. This property is used to notify the user about errors that occur in LocationDataSource. Such errors are critical for LocationDataSource and will cause it stop. If LocationDataSource cannot be started, or it stopped after a successful start, this property will store information related to what caused LocationDataSource to stop.

Link copied to clipboard
val headingChanged: SharedFlow<Double>

Set the heading changed callback function for the location data source.

Link copied to clipboard
open val locationChanged: SharedFlow<Location>

A SharedFlow that emits location changes.

Link copied to clipboard
val pathwaysTable: ArcGISFeatureTable?

The "Pathways" feature table from an IPS-enabled map.

Link copied to clipboard
val positioningId: Guid?

The ID that identifies a row in the IPS_Positioning FeatureTable.

Link copied to clipboard
val positioningTable: FeatureTable

The "IPS_Positioning" feature table from an IPS-enabled map.

Link copied to clipboard
val status: StateFlow<LocationDataSourceStatus>
Link copied to clipboard
val warning: StateFlow<Throwable?>

An error that describes a problem encountered while starting or running the LocationDataSource. This property is used to notify user about transient, non-terminal errors, which occur in IndoorsLocationDataSource. Such errors can influence accuracy of the final positioning. Information stored inside reported error contains useful information about its origin. Unlike LocationDataSource error it does not require IndoorsLocationDataSource to be restarted.