PROTOCOL
IPSPositioningObserver
@objc public protocol IPSPositioningObserver
This class is used to provide positioning related information.
- Since: 2.10.0
Methods
onPositioningEngineStateChanged(_:)
func onPositioningEngineStateChanged(_ newState: IPSPositioning.PositioningEngineState)
Invoked to inform about changes in the state of the IPS engine.
-
Since: 2.10.0
-
Parameters:
- newState: The new state in which the engine currently is.
Parameters
| Name | Description |
|---|---|
| newState | The new state in which the engine currently is. |
onPositionUpdate(_:)
func onPositionUpdate(_ newPosition: IPSPosition)
Invoked every time the IPS positioning engine provides a new position update.
Position updates will only be provided as long as a positioning session is in effect.
See IPSPositioning.startPositioning(from:_:).
-
Since: 2.10.0
-
Parameters:
- newPosition: The latest position of the device on the map.
Parameters
| Name | Description |
|---|---|
| newPosition | The latest position of the device on the map. |
onCalibrationProgress(_:)
func onCalibrationProgress(_ percent: Float)
Invoked to provide a feedback on the progress of the calibration process.
The indication is provided as a number from 0-100 (indicating percentages of progress).
Calibration updates will only be provided as long as a calibration or positioning session is in effect.
See IPSPositioning.startCalibration(_:).
-
Since: 2.10.0
-
Parameters:
- percent: Progress indicator (0-100%)
Parameters
| Name | Description |
|---|---|
| percent | Progress indicator (0-100%) |
onCalibrationGestureNeeded(_:)
func onCalibrationGestureNeeded(_ needed: Bool)
Invoked in case current device calibration became insufficient and it is recommended that the user will make calibration gestures in order to improve calibration.
-
Since: 2.10.0
-
Parameters:
- needed: Are calibration gestures needed or not
Parameters
| Name | Description |
|---|---|
| needed | Are calibration gestures needed or not |
onFloorChanged(_:)
func onFloorChanged(_ newFloor: IPSFloor)
Invoked by the IPS positioning engine to indicate that the user has moved to a different floor.
From the moment of invocation, every IPSPositioningObserver.onPositionUpdate(_:) event will
provide position on the new floor. May be invoked only while positioning is in progress.
-
Since 2.11.0
-
Parameters:
- newFloor: the floor to which the user has moved.
onPositioningError(_:)
func onPositioningError(_ error: IPSError)
Invoked to inform about errors in the positioning process.
-
Since 2.10.0
-
Parameters:
- error: The error description.
Parameters
| Name | Description |
|---|---|
| error | The error description. |
onBuildingChanged(_:)
@objc optional func onBuildingChanged(_ newBuilding: IPSBuilding)
Invoked by the IPS positioning engine to indicate that the user is positioning or calibrating in a building.
-
Since: 8.8.0
-
Parameters:
- newBuilding: The current active building.
Parameters
| Name | Description |
|---|---|
| newBuilding | The current active building. |