ArcGIS Runtime SDK for iOS
100.15
|
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.
Instance Methods | |
(void) | - didStartOrFailWithError: |
(void) | - didStop |
(void) | - didUpdateHeading: |
(void) | - didUpdateLocation: |
(void) | - doStart |
(void) | - doStop |
(instancetype) | - initWithPositioningTable:pathwaysTable: |
(instancetype) | - initWithPositioningTable:pathwaysTable:positioningID: |
(void) | - startWithCompletion: |
(void) | - stop |
(void) | - stopWithCompletion: |
Class Methods | |
(instancetype) | + indoorsLocationDataSourceWithPositioningTable:pathwaysTable: |
(instancetype) | + indoorsLocationDataSourceWithPositioningTable:pathwaysTable:positioningID: |
Properties | |
NSError * | error |
id< AGSLocationChangeHandlerDelegate > | locationChangeHandlerDelegate |
AGSArcGISFeatureTable * | pathwaysTable |
NSUUID * | positioningID |
AGSFeatureTable * | positioningTable |
BOOL | started |
AGSLocationDataSourceStatus | status |
NSError * | warning |
- (void) didStartOrFailWithError: | (nullable NSError *) | error |
Subclasses must call this in doStart (AGSLocationDataSource(ForSubclassEyesOnly))
once the datasource has started.
Provided by category AGSLocationDataSource(ForSubclassEyesOnly).
- (void) didStop |
Subclasses must call this in doStop (AGSLocationDataSource(ForSubclassEyesOnly))
once the datasource has stopped.
Provided by category AGSLocationDataSource(ForSubclassEyesOnly).
- (void) didUpdateHeading: | (double) | heading |
Subclasses must call this once they have a new heading.
Provided by category AGSLocationDataSource(ForSubclassEyesOnly).
- (void) didUpdateLocation: | (AGSLocation *) | location |
Subclasses must call this once they have a new location.
Provided by category AGSLocationDataSource(ForSubclassEyesOnly).
- (void) doStart |
Subclasses must implement this method to start the datasource. Once the datasource has started or failed to start it should call didStartOrFailWithError: (AGSLocationDataSource(ForSubclassEyesOnly))
. As updates are received, the datasource should call didUpdateLocation: (AGSLocationDataSource(ForSubclassEyesOnly))
or didUpdateHeading: (AGSLocationDataSource(ForSubclassEyesOnly))
.
Provided by category AGSLocationDataSource(ForSubclassEyesOnly).
- (void) doStop |
Subclasses must implement this method to stop the datasource. Once the datasource has stopped it should call didStop (AGSLocationDataSource(ForSubclassEyesOnly))
Provided by category AGSLocationDataSource(ForSubclassEyesOnly).
+ (instancetype) indoorsLocationDataSourceWithPositioningTable: | (AGSFeatureTable *) | positioningTable | |
pathwaysTable: | (nullable AGSArcGISFeatureTable *) | pathwaysTable | |
Creates a new AGSIndoorsLocationDataSource
object from the given feature table and context.
positioningTable | The "ips_positioning" feature table from an IPS-enabled map. |
pathwaysTable | An ArcGIS feature table that contains pathways as per the ArcGIS Indoors Information Model. |
+ (instancetype) indoorsLocationDataSourceWithPositioningTable: | (AGSFeatureTable *) | positioningTable | |
pathwaysTable: | (nullable AGSArcGISFeatureTable *) | pathwaysTable | |
positioningID: | (NSUUID *) | positioningID | |
Creates a new AGSIndoorsLocationDataSource
object from the given feature table and context.
positioningTable | The "ips_positioning" feature table from an IPS-enabled map. |
pathwaysTable | An ArcGIS feature table that contains pathways as per the ArcGIS Indoors Information Model. |
positioningID | An ID which identifies a specific row in the feature table that should be used for setting up IPS. |
- (instancetype) initWithPositioningTable: | (AGSFeatureTable *) | positioningTable | |
pathwaysTable: | (nullable AGSArcGISFeatureTable *) | pathwaysTable | |
Creates a new AGSIndoorsLocationDataSource
object from the given feature table and context. The data source will try to determine the latest row in the table and use that to set up the Indoors Positioning System (IPS).
positioningTable | The "ips_positioning" feature table from an IPS-enabled map. |
pathwaysTable | An ArcGIS feature table that contains pathways as per the ArcGIS Indoors Information Model. |
- (instancetype) initWithPositioningTable: | (AGSFeatureTable *) | positioningTable | |
pathwaysTable: | (nullable AGSArcGISFeatureTable *) | pathwaysTable | |
positioningID: | (NSUUID *) | positioningID | |
Creates a new AGSIndoorsLocationDataSource
object from the given feature table and context.
positioningTable | The "ips_positioning" feature table from an IPS-enabled map. |
pathwaysTable | An ArcGIS feature table that contains pathways as per the ArcGIS Indoors Information Model. |
positioningID | An ID which identifies a specific row in the feature table that should be used for setting up IPS. |
- (void) startWithCompletion: | (nullable void(^)(NSError *__nullable error)) | completion |
This is invoked by the location display on the datasource to initiate requesting location updates. Internally this method calls doStart (AGSLocationDataSource(ForSubclassEyesOnly))
which subclasses must implement.
completion | block which will be invoked when the operation completes. If the dataSource failed to start, the error property will be populated. |
- (void) stop |
This is invoked by the location display on the datasource to stop requesting location updates. Internally this method calls doStop (AGSLocationDataSource(ForSubclassEyesOnly))
which subclasses must implement.
stopWithCompletion:
. Provided by category AGSLocationDataSource(AGSDeprecated).
- (void) stopWithCompletion: | (nullable void(^)(void)) | completion |
This is invoked by the location display on the datasource to stop requesting location updates. Internally this method calls doStop (AGSLocationDataSource(ForSubclassEyesOnly))
which subclasses must implement.
|
readnonatomicstronginherited |
The error that prevented the datasource from starting or was encountered while retrieving a location udpate
|
readwritenonatomicweakinherited |
The delegate which will receive location, heading and status updates from the data source.
|
readnonatomicstrong |
An AGSArcGISFeatureTable
that contains pathways as per the ArcGIS indoors information model.
For more information about the ArcGIS indoors information model see https://pro.arcgis.com/en/pro-app/latest/help/data/indoors/arcgis-indoors-information-model.htm#ESRI_SECTION2_72E0DE4BBEFA435485E2D10CB16D2BE6.
|
readnonatomicstrong |
The ID that identifies a row in the AGSFeatureTable
.
|
readnonatomicstrong |
The "ips_positioning" feature table from an IPS-enabled map.
|
readnonatomicassigninherited |
YES
if the data source has been started, NO
otherwise.
AGSLocationDataSource::status
. Provided by category AGSLocationDataSource(AGSDeprecated).
|
readnonatomicassigninherited |
The status of the data source.
|
readnonatomicstrong |
An error that describes a problem encountered while starting or running the AGSLocationDataSource
.
This property is used to notify user about transient, non-terminal errors, which occur in AGSIndoorsLocationDataSource
. Such errors can influence accuracy of the final positioning. Information stored inside reported error contains useful information about its origin. Unlike AGSLocationDataSource::error
it does not require AGSIndoorsLocationDataSource
to be restarted.