//sdk-realtime/me.oriient.ipssdk.ips/IPSPositioning
IPSPositioning
[androidJvm]\ open class IPSPositioning
This class represents the Indoor Positioning System (IPS) Positioning Client. It is the element by which all communication with the IPS engine is performed and all services are delivered. The main service is a positioning engine that continuously positions the user on a selected map based on the mobile device sensor data and the movement of the user indoors.
Since
2.2.0
Types
| Name | Summary |
|---|---|
| PositioningEngineState | [androidJvm] @Retention(value = RetentionPolicy.SOURCE) annotation class PositioningEngineState This IntDef represents the state of the IPS engine. |
Functions
| Name | Summary |
|---|---|
| addCurrentRestrictedAreaListener | [androidJvm] open fun addCurrentRestrictedAreaListener(listener: IPSCurrentRestrictedAreaListener) This method is used to add a listener to receive current restricted area changes. |
| addPositioningListener | [androidJvm] open fun addPositioningListener(@NonNulllistener: IPSPositioningListener) A method for adding a listener to receive position and calibration related updates and PositioningEngineState changes. |
| addUserPositionAvailabilityListener | [androidJvm] open fun addUserPositionAvailabilityListener(listener: IPSUserPositionAvailabilityListener) This method is used to add a listener to receive current user position availability in restricted areas. |
| consumeExternalLocationSignal | [androidJvm] open fun consumeExternalLocationSignal(@NonNullsignal: IPSExternalLocationSignal) Feeds a location estimation produced outside the Oriient positioning engine (e.g. |
| convertCoordinateToGlobalCoordinate | [androidJvm] @Nullable open fun convertCoordinateToGlobalCoordinate(@NonNullcoordinate: IPSCoordinate, @NonNullbuilding: IPSBuilding): IPSGlobalCoordinate @NonNull open fun convertCoordinateToGlobalCoordinate(@NonNullcoordinate: IPSCoordinate, @NonNullbuildingOrigin: IPSGlobalCoordinate, buildingRotation: Double): IPSGlobalCoordinate |
| convertGlobalCoordinateToBuildingCoordinate | [androidJvm] @Nullable open fun convertGlobalCoordinateToBuildingCoordinate(@NonNullcoordinate: IPSGlobalCoordinate, @NonNullbuilding: IPSBuilding): IPSCoordinate @NonNull open fun convertGlobalCoordinateToBuildingCoordinate(@NonNullcoordinate: IPSGlobalCoordinate, @NonNullbuildingOrigin: IPSGlobalCoordinate, buildingRotation: Double): IPSCoordinate |
| defineCurrentBuilding | [androidJvm] open fun defineCurrentBuilding(@NonNullbuilding: IPSBuilding) This method forces the SDK to use a specific building charging-based auto-start. |
| describePositioningEngineState | [androidJvm] @NonNull open fun describePositioningEngineState(state: Int): String This method returns a String describing a PositioningEngineState. |
| getCalibrationNeededReason | [androidJvm] @Nullable open fun getCalibrationNeededReason(): Integer |
| getCalibrationProgress | [androidJvm] open fun getCalibrationProgress(): Double |
| getCurrentBuilding | [androidJvm] @Nullable open fun getCurrentBuilding(): IPSBuilding The current building of the positioning/calibration session, or null if unavailable |
| getCurrentFloor | [androidJvm] @Nullable open fun getCurrentFloor(): IPSFloor The current floor of the positioning/calibration session, or null if unavailable |
| getCurrentRestrictedArea | [androidJvm] @Nullable open fun getCurrentRestrictedArea(): IPSRestrictedArea Returns the current restricted area. |
| getCurrentSessionId | [androidJvm] @Nullable open fun getCurrentSessionId(): String |
| getCurrentTimeMilli | [androidJvm] open fun getCurrentTimeMilli(): Long Returns the current time in "GMT" as used by the tracking system in epoch milliseconds. |
| getLastKnownLockedPosition | [androidJvm] @Nullable open fun getLastKnownLockedPosition(): IPSPosition Returns the last locked position recorded during a positioning session or null if none exists. |
| getLastKnownPosition | [androidJvm] @Nullable open fun getLastKnownPosition(): IPSPosition Returns the last position recorded on the active map or null if none exists. |
| getPositioningEngineState | [androidJvm] open fun getPositioningEngineState(): Int |
| getTimeFromStartOfCurrentSessionMilli | [androidJvm] open fun getTimeFromStartOfCurrentSessionMilli(): Long Returns the amount of time in milliseconds which passed since the start of the current tracking session or -1 if not tracking. |
| isAutomaticCalibrationEnabled | [androidJvm] open fun isAutomaticCalibrationEnabled(): Boolean |
| isCalibrationGestureNeeded | [androidJvm] open fun isCalibrationGestureNeeded(): Boolean |
| isLimitedConnectionSupported | [androidJvm] open fun isLimitedConnectionSupported(): Boolean |
| isPositionHighConfidence | [androidJvm] open fun isPositionHighConfidence(@NonNullposition: IPSPosition): Boolean |
| isPositionLocked | [androidJvm] open fun isPositionLocked(@NonNullposition: IPSPosition): Boolean |
| removeCurrentRestrictedAreaListener | [androidJvm] open fun removeCurrentRestrictedAreaListener(listener: IPSCurrentRestrictedAreaListener) This method is used to remove a listener to receive current restricted area changes. |
| removePositioningListener | [androidJvm] open fun removePositioningListener(@NonNulllistener: IPSPositioningListener) A method for removing positioning listeners. |
| removeUserPositionAvailabilityListener | [androidJvm] open fun removeUserPositionAvailabilityListener(listener: IPSUserPositionAvailabilityListener) This method is used to remove a listener and stop receiving current user position availability in restricted areas. |
| sendCustomEventTag | [androidJvm] open fun sendCustomEventTag(@NonNulltag: String, @Nullablemetadata: String, @NonNulltype: String, @NullablecompletionListener: IPSCompletionListener) Notifies the backend about an event during a positioning session. |
| sendEventTag | [androidJvm] open fun sendEventTag(@NonNulltag: String, @Nullablemetadata: String, @NullablecompletionListener: IPSCompletionListener) open fun sendEventTag(@NonNulltag: String, @Nullablemetadata: String, type: Int, @NullablecompletionListener: IPSCompletionListener) Notifies the backend about an event during a positioning session. |
| sendHighConfidenceEventTag | [androidJvm] open fun sendHighConfidenceEventTag(@NonNulltag: String, @Nullableposition: IPSHighConfidencePosition, @NullablecompletionListener: IPSCompletionListener) Notifies the backend about a high confidence event during a positioning session. |
| setAutomaticCalibrationEnabled | [androidJvm] open fun setAutomaticCalibrationEnabled(enabled: Boolean) Enabling automatic calibration will allow the IPS SDK to initiate calibration by itself whenever the engine decides that it is required and onCalibrationGestureNeeded is called with a value of true. |
| setLastKnownPosition | [androidJvm] open fun setLastKnownPosition(@Nullableposition: IPSPosition) This method sets the last known position property of the IPS SDK. |
| startCalibration | [androidJvm] open fun startCalibration(@Nullablelistener: IPSCompletionListener) This method will request the IPS engine to start providing calibration progress updates on the IPSPositioningListener. |
| startPositioning | [androidJvm] open fun startPositioning(@NonNullbuildingId: String, @NullablefloorOrder: Integer, @NullablestartingPosition: IPSStartingPosition, @Nullablelistener: IPSCompletionListener) open fun startPositioning(@NonNullbuilding: IPSBuilding, @NullablefloorOrder: Integer, @NullablestartingPosition: IPSStartingPosition, @Nullablelistener: IPSCompletionListener) open fun startPositioning(@NonNullbuildingId: String, @NullablefloorOrder: Integer, @NullablestartingPosition: IPSStartingPosition, canStartOutsideBuilding: Boolean, @Nullablelistener: IPSCompletionListener) open fun startPositioning(@NonNullbuilding: IPSBuilding, @NullablefloorOrder: Integer, @NullablestartingPosition: IPSStartingPosition, canStartOutsideBuilding: Boolean, @Nullablelistener: IPSCompletionListener) This method will request the IPS engine to start providing position updates on the IPSPositioningListener. |
| stopCalibration | [androidJvm] open fun stopCalibration(@Nullablelistener: IPSCompletionListener) This method will request the IPS engine to stop providing calibration progress updates on the IPSPositioningListener. |
| stopPositioning | [androidJvm] open fun stopPositioning(@Nullablelistener: IPSCompletionListener) open fun stopPositioning(@NonNullreason: String, @Nullablelistener: IPSCompletionListener) This method will request the IPS engine to stop providing position updates on the IPSPositioningListener. |
| switchTo | [androidJvm] open fun switchTo(@NonNullbuilding: IPSBuilding, @Nullablelistener: IPSCompletionListener) This method moves an active positioning session into another building. |