CLASS
IPSPositioning
public class IPSPositioning: NSObject
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 sensors data and the movement of the user indoors.
Properties
isAutomaticCalibrationEnabled
@objc public static var isAutomaticCalibrationEnabled: Bool
-
Returns: the current value of this property (see also
IPSPositioning.setAutomaticCalibrationEnabled(_:)). -
Since: 2.10.0
calibrationNeededReason
@objc public static var calibrationNeededReason: IPSCalibrationNeededReason
- Returns: If
IPSPositioning.isCalibrationGestureNeeded()is true, this property will contain current calibration request reason. Otherwise the value is irrelevant. - Since: 3.2.0
currentBuilding
@objc public static var currentBuilding: IPSBuilding?
The current building of the positioning or calibration session, or nil if unavailable
- Since: 8.8.0
currentFloor
@objc public static var currentFloor: IPSFloor?
The current floor of the positioning or calibration session, or nil if unavailable.
- Since: 8.8.0
currentRestrictedArea
@objc public static var currentRestrictedArea: IPSRestrictedArea?
Current restricted area. Nil if there is no restricted area.
- Since: 8.2.0
testLockThreshold
@objc public static var testLockThreshold: Double
currentSessionId
@objc public static var currentSessionId: String?
The ID of the current active positioning/calibration session. Nil if there is no active session.
- Since: 3.9.0
isLimitedConnectionSupported
@objc public static var isLimitedConnectionSupported: Bool
This property indicates if Oriient positioning system can currently perform calibration/positioning without a stable internet connection.
- Since: 3.9.0
Methods
getPositioningEngineState()
@objc public static func getPositioningEngineState() -> PositioningEngineState
-
Returns: the current state of the IPS positioning engine (see
IPSPositioning.PositioningEngineState) -
Since: 2.10.0
getCurrentBuildingId()
@objc public static func getCurrentBuildingId() -> String?
- Returns: ID of the building in which a positioning session currently taking place
-
Warning: Deprecated since 8.8.0. Use
IPSPositioning.currentBuildinginstead. -
Since: 2.11.0
- Deprecated: 8.8.0
addPositioningObserver(_:)
@objc public static func addPositioningObserver(_ observer: IPSPositioningObserver)
This method is used to add an observer to receive position and calibration related updates and IPSPositioning.PositioningEngineState changes.
-
Since: 2.10.0
-
Parameters:
- observer: an object implementing
IPSPositioningObserverprotocol. Only weak reference to the observer will be stored.
Parameters
| Name | Description |
|---|---|
| observer | an object implementing IPSPositioningObserver protocol. Only weak reference to the observer will be stored. |
removePositioningObserver(_:)
@objc public static func removePositioningObserver(_ observer: IPSPositioningObserver)
This method is used to remove an observer and stop receiving position and calibration related updates and IPSPositioning.PositioningEngineState changes.
-
Since: 2.10.0
-
Parameters:
- observer: an object implementing
IPSPositioningObserverprotocol
Parameters
| Name | Description |
|---|---|
| observer | an object implementing IPSPositioningObserver protocol |
startPositioning(buildingId:floorOrder:from:fullAccuracyPurposeKey:_:)
@objc public static func startPositioning(
buildingId: String,
floorOrder: Int,
from startingPosition: IPSStartingPosition? = nil,
fullAccuracyPurposeKey: String? = nil,
_ completion: ((IPSError?) -> Void)? = nil
)
This method will request the IPS engine to start providing position updates on the IPSPositioningObserver.
The request will result in an error if the IPSCore.ConnectionState is IPSCore.ConnectionState.offline.
If the IPSPositioning.PositioningEngineState is IPSPositioning.PositioningEngineState.positioningAndCalibrating, the request will succeed immediately and will do nothing.
After a request has been successfully sent, the IPSPositioning.PositioningEngineState will change to IPSPositioning.PositioningEngineState.positioningAndCalibrating.
-
Since: 2.10.0
-
Parameters:
- buildingId: ID of the building to start positioning in
- floorOrder: order of floor in the building where positioning should start
- 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 nil value if no knowledge of the user position is available through other sources.
- fullAccuracyPurposeKey: A key in the NSLocationTemporaryUsageDescriptionDictionary dictionary of the app’s Info.plist file.
Will be used to require full accuracy location access if necessary. If there is no full accuracy access and the key is not provided or user will deny the access start positioning will fail with
IPSErrorCodes.noFullAccuracyLocationPermissionerror code. - completion: completion block for receiving the request completion status.
Parameters
| Name | Description |
|---|---|
| buildingId | ID of the building to start positioning in |
| floorOrder | order of floor in the building where positioning should start |
| 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 nil value if no knowledge of the user position is available through other sources. |
| fullAccuracyPurposeKey | A key in the NSLocationTemporaryUsageDescriptionDictionary dictionary of the app’s Info.plist file. Will be used to require full accuracy location access if necessary. If there is no full accuracy access and the key is not provided or user will deny the access start positioning will fail with IPSErrorCodes.noFullAccuracyLocationPermission error code. |
| completion | completion block for receiving the request completion status. |
startPositioning(buildingId:floorOrder:canStartOutsideBuilding:from:fullAccuracyPurposeKey:_:)
@objc public static func startPositioning(
buildingId: String,
floorOrder: Int,
canStartOutsideBuilding: Bool,
from startingPosition: IPSStartingPosition? = nil,
fullAccuracyPurposeKey: String? = nil,
_ completion: ((IPSError?) -> Void)? = nil
)
This method will request the IPS engine to start providing position updates on the IPSPositioningObserver.
The request will result in an error if the IPSCore.ConnectionState is IPSCore.ConnectionState.offline.
If the IPSPositioning.PositioningEngineState is IPSPositioning.PositioningEngineState.positioningAndCalibrating, the request will succeed immediately and will do nothing.
After a request has been successfully sent, the IPSPositioning.PositioningEngineState will change to IPSPositioning.PositioningEngineState.positioningAndCalibrating.
-
Since: 3.1.0
-
Parameters:
- buildingId: ID of the building to start positioning in
- floorOrder: order of floor in the building where positioning should start
- 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 nil value if no knowledge of the user position is available through other sources.
- fullAccuracyPurposeKey: A key in the NSLocationTemporaryUsageDescriptionDictionary dictionary of the app’s Info.plist file.
Will be used to require full accuracy location access if necessary. If there is no full accuracy access and the key is not provided or user will deny the access start positioning will fail with
IPSErrorCodes.noFullAccuracyLocationPermissionerror code. - completion: completion block for receiving the request completion status.
Parameters
| Name | Description |
|---|---|
| buildingId | ID of the building to start positioning in |
| floorOrder | order of floor in the building where positioning should start |
| 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 nil value if no knowledge of the user position is available through other sources. |
| fullAccuracyPurposeKey | A key in the NSLocationTemporaryUsageDescriptionDictionary dictionary of the app’s Info.plist file. Will be used to require full accuracy location access if necessary. If there is no full accuracy access and the key is not provided or user will deny the access start positioning will fail with IPSErrorCodes.noFullAccuracyLocationPermission error code. |
startPositioning(buildingId:canStartOutsideBuilding:from:fullAccuracyPurposeKey:_:)
@objc public static func startPositioning(
buildingId: String,
canStartOutsideBuilding: Bool,
from startingPosition: IPSStartingPosition? = nil,
fullAccuracyPurposeKey: String? = nil,
_ completion: ((IPSError?) -> Void)? = nil
)
This method will request the IPS engine to start providing position updates on the IPSPositioningObserver.
The request will result in an error if the IPSCore.ConnectionState is IPSCore.ConnectionState.offline.
If the IPSPositioning.PositioningEngineState is IPSPositioning.PositioningEngineState.positioningAndCalibrating, the request will succeed immediately and will do nothing.
After a request has been successfully sent, the IPSPositioning.PositioningEngineState will change to IPSPositioning.PositioningEngineState.positioningAndCalibrating.
-
Since: 7.0.0
-
Parameters:
- buildingId: ID of the building to start positioning in
- 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 nil value if no knowledge of the user position is available through other sources.
- fullAccuracyPurposeKey: A key in the NSLocationTemporaryUsageDescriptionDictionary dictionary of the app’s Info.plist file.
Will be used to require full accuracy location access if necessary. If there is no full accuracy access and the key is not provided or user will deny the access start positioning will fail with
IPSErrorCodes.noFullAccuracyLocationPermissionerror code. - completion: completion block for receiving the request completion status.
Parameters
| Name | Description |
|---|---|
| buildingId | ID of the building to start positioning in |
| 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 nil value if no knowledge of the user position is available through other sources. |
| fullAccuracyPurposeKey | A key in the NSLocationTemporaryUsageDescriptionDictionary dictionary of the app’s Info.plist file. Will be used to require full accuracy location access if necessary. If there is no full accuracy access and the key is not provided or user will deny the access start positioning will fail with IPSErrorCodes.noFullAccuracyLocationPermission error code. |
startPositioning(buildingId:from:fullAccuracyPurposeKey:_:)
@objc public static func startPositioning(
buildingId: String,
from startingPosition: IPSStartingPosition? = nil,
fullAccuracyPurposeKey: String? = nil,
_ completion: ((IPSError?) -> Void)? = nil
)
This method will request the IPS engine to start providing position updates on the IPSPositioningObserver.
The request will result in an error if the IPSCore.ConnectionState is IPSCore.ConnectionState.offline.
If the IPSPositioning.PositioningEngineState is IPSPositioning.PositioningEngineState.positioningAndCalibrating, the request will succeed immediately and will do nothing.
After a request has been successfully sent, the IPSPositioning.PositioningEngineState will change to IPSPositioning.PositioningEngineState.positioningAndCalibrating.
-
Since: 2.10.0
-
Parameters:
- buildingId: ID of the building to start positioning in
- 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 nil value if no knowledge of the user position is available through other sources.
- fullAccuracyPurposeKey: A key in the NSLocationTemporaryUsageDescriptionDictionary dictionary of the app’s Info.plist file. Will be used to require full accuracy location access if necessary. If there is no full accuracy access and the key is not provided or user will deny the access start positioning will fail with
IPSErrorCodes.noFullAccuracyLocationPermissionerror code.
- completion: completion block for receiving the request completion status.
Parameters
| Name | Description |
|---|---|
| buildingId | ID of the building to start positioning in |
| 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 nil value if no knowledge of the user position is available through other sources. |
| fullAccuracyPurposeKey | A key in the NSLocationTemporaryUsageDescriptionDictionary dictionary of the app’s Info.plist file. Will be used to require full accuracy location access if necessary. If there is no full accuracy access and the key is not provided or user will deny the access start positioning will fail with IPSErrorCodes.noFullAccuracyLocationPermission error code. |
| completion | completion block for receiving the request completion status. |
switchTo(building:_:)
public static func switchTo(
building: IPSBuilding,
_ completion: ((IPSError?) -> Void)? = nil
)
This method moves an active positioning session into another building.
The request will result in an error if the IPSPositioning.PositioningEngineState is not
IPSPositioning.PositioningEngineState.positioningAndCalibrating.
-
Since: 9.11.0
-
Parameters:
- building: the building to move the positioning session to.
- completion: completion block for receiving the request completion status.
Parameters
| Name | Description |
|---|---|
| building | the building to move the positioning session to. |
| completion | completion block for receiving the request completion status. |
stopPositioning(reason:_:)
@objc public static func stopPositioning(
reason: String? = nil,
_ completion: ((IPSError?) -> ())? = nil
)
This method will request the IPS engine to stop providing position updates on the IPSPositioningObserver.
The request will result in an error if the IPSCore.ConnectionState is IPSCore.ConnectionState.offline.
If the IPSPositioning.PositioningEngineState is not IPSPositioning.PositioningEngineState.positioningAndCalibrating, the request will succeed immediately and will do nothing.
After a request has been successfully sent, the IPSPositioning.PositioningEngineState will change to IPSPositioning.PositioningEngineState.idle.
-
Since: 2.10.0
-
Parameters:
- reason: the reason to stop current positioning session;
- completion: completion block for receiving the request completion status.
Parameters
| Name | Description |
|---|---|
| reason | the reason to stop current positioning session; |
| completion | completion block for receiving the request completion status. |
getLastKnownPosition()
@objc public static func getLastKnownPosition() -> IPSPosition?
Returns the last position recorded during a positioning session or nil if none exists.
The position is cleared on logout.
- Since: 3.0.0
getLastKnownLockedPosition()
@objc public static func getLastKnownLockedPosition() -> IPSPosition?
Returns the last locked position recorded during a positioning session or nil if none exists.
The position is cleared on logout.
- Since: 3.0.0
isPositionLocked(_:)
@objc public static func isPositionLocked(_ position: IPSPosition) -> Bool
-
Returns:
trueif the position is locked,falseotherwise. Lock is determined usingIPSPosition.lockProgress. -
Since: 3.0.0
setLastKnownPosition(_:)
@objc public static func setLastKnownPosition(_ position: IPSPosition?)
This method sets the last known position property of the IPSFramework. Should be used to provide user position
obtained through external sources. This property will be overridden by IPS position updates received on
IPSPositioningObserver.
This position will be used as the user position in route searches by IPSNavigation
(see IPSNavigation.findRoute(startFromUserPosition:onRouteReceived:onError:), IPSNavigation.navigationDelegate).
Will not be applied if current IPSPositioning.PositioningEngineState is IPSPositioning.PositioningEngineState.positioningAndCalibrating.
-
Since: 2.10.0
-
Parameters:
- position: the current position of the user as determined by external sources.
Parameters
| Name | Description |
|---|---|
| position | the current position of the user as determined by external sources. |
describePositioningEngineState(_:)
@objc public static func describePositioningEngineState(_ state: PositioningEngineState) -> String
This method returns a string describing a 'IPSPositioning.PositionEngineState'.
- Parameters:
-
state: The state to describe.
-
Returns: The description.
convertCoodinateToGlobalCoordinate(_:relativeTo:)
@objc public static func convertCoodinateToGlobalCoordinate(_ coordinate: IPSCoordinate, relativeTo building: IPSBuilding) -> IPSGlobalCoordinate?
This method converts a coordinate relative to a building's coordinates system to a geographic coordinate.
-
Since: 2.14.0
-
Parameters:
- coordinate: coordinate relative to a building coordinates system;
- relativeTo: building in which coordinates system the first parameter is provided.
- Returns: A
IPSGlobalCoordinateif the building supports the coordinates conversion (SeeIPSBuilding.originfor the reference) or nil otherwise.
Parameters
| Name | Description |
|---|---|
| coordinate | coordinate relative to a building coordinates system; |
| relativeTo | building in which coordinates system the first parameter is provided. |
convertCoodinateToGlobalCoordinate(_:buildingOrigin:buildingRotation:)
@objc public static func convertCoodinateToGlobalCoordinate(_ coordinate: IPSCoordinate, buildingOrigin: IPSGlobalCoordinate, buildingRotation: Double) -> IPSGlobalCoordinate
This method converts a coordinate relative to a building's coordinates system to a geographic coordinate.
-
Since: 2.14.0
-
Parameters:
- coordinate: coordinate relative to a building coordinates system;
- buildingOrigin: origin of the building in which coordinates system the first parameter is provided;
- buildingRotation: rotation of the building relative to ENU coordinates system
- Returns:
IPSGlobalCoordinatecorresponding to coordinate provided as a parameter.
Parameters
| Name | Description |
|---|---|
| coordinate | coordinate relative to a building coordinates system; |
| buildingOrigin | origin of the building in which coordinates system the first parameter is provided; |
| buildingRotation | rotation of the building relative to ENU coordinates system |
convertGlobalCoordinateToBuilding(_:relativeTo:)
@objc public static func convertGlobalCoordinateToBuilding(
_ coordinate: IPSGlobalCoordinate,
relativeTo building: IPSBuilding
) -> IPSCoordinate?
This method converts a geographic coordinate to a coordinate relative to a building's coordinates system.
-
Since: 2.20.0
-
Parameters:
- coordinate: coordinate relative to a building coordinates system;
- relativeTo: building in which coordinates system the first parameter is provided.
- Returns: A
IPSGlobalCoordinateif the building supports the coordinates conversion (SeeIPSBuilding.originfor the reference) or nil otherwise.
Parameters
| Name | Description |
|---|---|
| coordinate | coordinate relative to a building coordinates system; |
| relativeTo | building in which coordinates system the first parameter is provided. |
convertGlobalCoordinateToBuilding(_:buildingOrigin:buildingRotation:)
@objc public static func convertGlobalCoordinateToBuilding(
_ coordinate: IPSGlobalCoordinate,
buildingOrigin: IPSGlobalCoordinate,
buildingRotation: Double
) -> IPSCoordinate
This method converts a geographic coordinate to a coordinate relative to a building's coordinates system.
-
Since: 2.20.0
-
Parameters:
- coordinate: geographic coordinate;
- buildingOrigin: origin of the building in which coordinates system the first parameter is provided;
- buildingRotation: rotation of the building relative to ENU coordinates system
- Returns:
IPSGlobalCoordinatecorresponding to coordinate provided as a parameter.
Parameters
| Name | Description |
|---|---|
| coordinate | geographic coordinate; |
| buildingOrigin | origin of the building in which coordinates system the first parameter is provided; |
| buildingRotation | rotation of the building relative to ENU coordinates system |
sendEventTag(tag:metadata:type:onSuccess:onError:)
@objc public static func sendEventTag(
tag: String,
metadata: String?,
type: IPSEventTagType = .productScan,
onSuccess: @escaping () -> Void,
onError: @escaping (IPSError) -> Void
) -> IPSCancellable
Tag an important event during a positioning session. The tag will be automatically assigned with a timestamp and information about the most relevant user position. Saving a tag requires the Internet connection as well as an active positioning session.
- Since: 3.0.0
- Parameters:
- tag: The event tag;
- metadata: Open-format metadata to be saved with the tag;
- type: Type of the event tag;
- onSuccess: closure will be called in case of success;
- onError: closure will be called in case of error.
Parameters
| Name | Description |
|---|---|
| tag | The event tag; |
| metadata | Open-format metadata to be saved with the tag; |
| type | Type of the event tag; |
| onSuccess | closure will be called in case of success; |
| onError | closure will be called in case of error. |
sendCustomEventTag(tag:metadata:type:onSuccess:onError:)
@objc public static func sendCustomEventTag(
tag: String,
metadata: String?,
type: String,
onSuccess: @escaping () -> Void,
onError: @escaping (IPSError) -> Void
) -> IPSCancellable
@warning("Please prefer IPSPositioning.sendEventTag. In case the event type you use is not supported - coordinate the addition of a new value with Oriient Customer Support team.")
Tag an important event during a positioning session with a custom event tag type. The tag will be automatically assigned with a timestamp and information about the most relevant user position. Saving a tag requires the Internet connection as well as an active positioning session. - Since: 4.5.0 - Parameters: - tag: The event tag; - metadata: Open-format metadata to be saved with the tag; - type: Type of the event tag; - onSuccess: closure will be called in case of success; - onError: closure will be called in case of error.
Parameters
| Name | Description |
|---|---|
| tag | The event tag; |
| metadata | Open-format metadata to be saved with the tag; |
| type | Type of the event tag; |
| onSuccess | closure will be called in case of success; |
| onError | closure will be called in case of error. |
getCurrentTime()
@objc public static func getCurrentTime() -> Double
Returns the current time in "GMT" as used by the system in seconds. Use this method to mark times on the positioning/calibration session to avoid time calculation differences and device time skew.
-
Since: 2.20.0
-
Returns: the current time in "GMT" as used by the system.
getTimeFromStartOfCurrentSession()
@objc public static func getTimeFromStartOfCurrentSession() -> Double
Returns the amount of time in seconds which passed since the start of the current positioning/calibration session or -1 if no active session.
-
Since: 2.20.0
-
Returns: the amount of time in seconds which passed since the start of the current session or -1 if no active session.
consumeExternalLocationSignal(_:)
public static func consumeExternalLocationSignal(_ signal: IPSExternalLocationSignal)
Consume a location estimation produced by a source external to the Oriient positioning engine (e.g. a host app's own BLE/WiFi/beacons-fusion layer).
- Since: 9.10.0
- Parameters:
- signal: The external location signal to consume.
Parameters
| Name | Description |
|---|---|
| signal | The external location signal to consume. |
startCalibration(_:)
@objc public static func startCalibration(_ completion: ((IPSError?) -> Void)? = nil)
This method will request the IPS engine to start providing calibration progress updates on the IPSPositioningObserver.
The request will result in an error if the IPSCore.ConnectionState is IPSCore.ConnectionState.offline.
If the IPSPositioning.PositioningEngineState is not IPSPositioning.PositioningEngineState.idle, the request will succeed immediately and will do nothing.
If the current IPSPositioning.PositioningEngineState is IPSPositioning.PositioningEngineState.idle, the IPSPositioning.PositioningEngineState will change to IPSPositioning.PositioningEngineState.positioningAndCalibrating after a request has been successfully sent.
-
Since: 2.10.0
-
Parameters:
- completion: completion block for receiving the request completion status.
Parameters
| Name | Description |
|---|---|
| completion | completion block for receiving the request completion status. |
stopCalibration(reason:_:)
@objc public static func stopCalibration(reason: String? = nil, _ completion: ((IPSError?) -> Void)? = nil)
This method will request the IPS engine to stop providing calibration progress updates on the IPSPositioningObserver.
If the IPSPositioning.PositioningEngineState is not IPSPositioning.PositioningEngineState.calibrating, the request will succeed immediately and will do nothing.
If the current IPSPositioning.PositioningEngineState is IPSPositioning.PositioningEngineState.calibrating, the IPSPositioning.PositioningEngineState will change to IPSPositioning.PositioningEngineState.idle after a request has been successfully sent.
-
Since: 2.10.0
-
Parameters:
- reason: the reason to stop current positioning session;
- completion: completion block for receiving the request completion status.
Parameters
| Name | Description |
|---|---|
| reason | the reason to stop current positioning session; |
| completion | completion block for receiving the request completion status. |
setAutomaticCalibrationEnabled(_:)
@objc public static func setAutomaticCalibrationEnabled(_ enabled: Bool)
Enabling automatic calibration will allow the IPSFramework to initiate calibration by itself whenever
the engine decides that it is required and IPSPositioningObserver.onCalibrationGestureNeeded(_:)
is called with a value of true.
Automatic calibration is disabled by default.
-
Since: 2.10.0
-
Parameters:
- enabled: the value to set for this property.
Parameters
| Name | Description |
|---|---|
| enabled | the value to set for this property. |
isCalibrationGestureNeeded()
@objc public static func isCalibrationGestureNeeded() -> Bool
-
Returns: true if the current device calibration is insufficient and it is recommended that the user will make calibration gestures in order to improve calibration. Will return the correct answer only after login.
-
Since: 2.10.0
getCalibrationProgress()
@objc public static func getCalibrationProgress() -> Float
-
Returns: the current calibration progress in percents (0 - 100).
-
Since: 2.10.0
addCurrentRestrictedAreaObserver(_:)
@objc public static func addCurrentRestrictedAreaObserver(_ observer: IPSCurrentRestrictedAreasObserver)
This method is used to add an observer to receive current restricted area changes.
-
Since: 8.2.0
-
Parameters:
- observer: an object implementing
IPSCurrentRestrictedAreasObserverprotocol. Only weak reference to the observer will be stored.
Parameters
| Name | Description |
|---|---|
| observer | an object implementing IPSCurrentRestrictedAreasObserver protocol. Only weak reference to the observer will be stored. |
removeCurrentRestrictedAreaObserver(_:)
@objc public static func removeCurrentRestrictedAreaObserver(_ observer: IPSCurrentRestrictedAreasObserver)
This method is used to remove an observer and stop receiving current restricted area changes.
-
Since: 8.2.0
-
Parameters:
- observer: an object implementing
IPSCurrentRestrictedAreasObserverprotocol
Parameters
| Name | Description |
|---|---|
| observer | an object implementing IPSCurrentRestrictedAreasObserver protocol |
addUserPositionAvailabilityObserver(_:)
@objc public static func addUserPositionAvailabilityObserver(_ observer: IPSUserPositionAvailabilityObserver)
This method is used to add an observer to receive user position availability changes.
-
Since: 9.6.0
-
Parameters:
- observer: an object implementing
IPSUserPositionAvailabilityObserverprotocol. Only weak reference to the observer will be stored.
Parameters
| Name | Description |
|---|---|
| observer | an object implementing IPSUserPositionAvailabilityObserver protocol. Only weak reference to the observer will be stored. |
removeUserPositionAvailabilityObserver(_:)
@objc public static func removeUserPositionAvailabilityObserver(_ observer: IPSUserPositionAvailabilityObserver)
This method is used to remove an observer and stop receiving user position availability changes.
-
Since: 9.6.0
-
Parameters:
- observer: an object implementing
IPSUserPositionAvailabilityObserverprotocol
Parameters
| Name | Description |
|---|---|
| observer | an object implementing IPSUserPositionAvailabilityObserver protocol |