Skip to content

//sdk-realtime/me.oriient.ipssdk.ips/IPSPositioning/startPositioning

startPositioning

[androidJvm]\ open fun startPositioning(@NonNullbuildingId: String, @NullablefloorOrder: Integer, @NullablestartingPosition: IPSStartingPosition, @Nullablelistener: IPSCompletionListener)

This method will request the IPS engine to start providing position updates on the IPSPositioningListener. The request will result in an error if the IPSCore.ConnectionState is OFFLINE. If the PositioningEngineState is POSITIONING_AND_CALIBRATING, the request will succeed immediately and will do nothing. After a request has been successfully sent, the PositioningEngineState will change to POSITIONING_AND_CALIBRATING.

Since

2.11.0

Parameters

androidJvm

buildingId The ID of the building in which to navigate.
floorOrder The index of the floor in the building.
startingPosition provides the engine with an approximate position of the user that is known through another source. A correct starting position will shorten the time it takes to get an initial lock on the user's position. Provide null value if no knowledge of the user position is available through other sources or set through setLastKnownPosition still describe the user position.
listener a listener for receiving the request completion status.

[androidJvm]\ open fun startPositioning(@NonNullbuildingId: String, @NullablefloorOrder: Integer, @NullablestartingPosition: IPSStartingPosition, canStartOutsideBuilding: Boolean, @Nullablelistener: IPSCompletionListener)

This method will request the IPS engine to start providing position updates on the IPSPositioningListener. The request will result in an error if the IPSCore.ConnectionState is OFFLINE. If the PositioningEngineState is POSITIONING_AND_CALIBRATING, the request will succeed immediately and will do nothing. After a request has been successfully sent, the PositioningEngineState will change to POSITIONING_AND_CALIBRATING.

Since

3.1.0

Parameters

androidJvm

buildingId The ID of the building in which to navigate.
floorOrder The index of the floor in the building.
canStartOutsideBuilding Whether or not to allow positioning when outside the building.
startingPosition provides the engine with an approximate position of the user that is known through another source. A correct starting position will shorten the time it takes to get an initial lock on the user's position. Provide null value if no knowledge of the user position is available through other sources or set through setLastKnownPosition still describe the user position.
listener a listener for receiving the request completion status.

[androidJvm]\ open fun startPositioning(@NonNullbuilding: IPSBuilding, @NullablefloorOrder: Integer, @NullablestartingPosition: IPSStartingPosition, @Nullablelistener: IPSCompletionListener)

This method will request the IPS engine to start providing position updates on the IPSPositioningListener. The request will result in an error if the IPSCore.ConnectionState is OFFLINE. If the PositioningEngineState is POSITIONING_AND_CALIBRATING, the request will succeed immediately and will do nothing. After a request has been successfully sent, the PositioningEngineState will change to POSITIONING_AND_CALIBRATING.

Since

2.11.0

Parameters

androidJvm

building The building in which to navigate.
floorOrder The index of the floor in the building.
startingPosition provides the engine with an approximate position of the user that is known through another source. A correct starting position will shorten the time it takes to get an initial lock on the user's position. Provide null value if no knowledge of the user position is available through other sources or set through setLastKnownPosition still describe the user position.
listener a listener for receiving the request completion status.

[androidJvm]\ 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. The request will result in an error if the IPSCore.ConnectionState is OFFLINE. If the PositioningEngineState is POSITIONING_AND_CALIBRATING, the request will succeed immediately and will do nothing. After a request has been successfully sent, the PositioningEngineState will change to POSITIONING_AND_CALIBRATING.

Since

3.1.0

Parameters

androidJvm

building The building in which to navigate.
floorOrder The index of the floor in the building.
canStartOutsideBuilding Whether or not to allow positioning when outside the building.
startingPosition provides the engine with an approximate position of the user that is known through another source. A correct starting position will shorten the time it takes to get an initial lock on the user's position. Provide null value if no knowledge of the user position is available through other sources or set through setLastKnownPosition still describe the user position.
listener a listener for receiving the request completion status.