LocationControllerInterface
public protocol LocationControllerInterface
-
Whether position has initialized
Declaration
Swift
func hasInit() -> Bool
Return Value
true if position is available
-
Get the current zone
Declaration
Swift
func getCurrentZone() -> MNZone?
Return Value
Current zone, nil if not available
-
Get the current position
Declaration
Swift
func getPosition() -> MNPosition?
Return Value
Current position, nil if not available
-
Returns a list of entities nearby the user’s position. Empty if none available
Declaration
Swift
func getNearbyEntities(completion: @escaping ([MNSearchEntity]) -> ())
Return Value
List of nearby entities
-
Get a list of nearby properties
Declaration
Swift
func getNearbyProperties() -> Set<Int>
Return Value
A unique list of nearby properties
-
Add a listener to changes in Nearby Property List
Declaration
Swift
func addNearbyPropertiesListener(listener: NearbyPropertiesListener)
Parameters
listener
A listener to changes in Nearby Properties
-
Remove listener from changes in Nearby Property List
Declaration
Swift
func removeNearbyPropertiesListener(listener: NearbyPropertiesListener)
Parameters
listener
A listener to changes in Nearby Properties
-
Add a listener to changes in Bearing value
Declaration
Swift
func addBearingChangeListener(listener: BearingChangeListener)
Parameters
listener
A listener to changes in bearing value
-
Remove listener from changes in Bearing value
Declaration
Swift
func removeBearingChangeListener(listener: BearingChangeListener)
Parameters
listener
A listener to changes in bearing value
-
Add a listener to changes in Position visibility
Declaration
Swift
func addPositionVisibilityListener(listener: PositionVisibilityListener)
Parameters
listener
A listener to changes in position visibility
-
Remove listener from changes in Position visibility
Declaration
Swift
func removePositionVisibilityListener(listener: PositionVisibilityListener)
Parameters
listener
A listener to changes in position visibility
-
Add a listener to changes in Position
Declaration
Swift
func addPositionChangeListener(listener: PositionChangeListener)
Parameters
listener
A listener to changes in position
-
Remove listener from changes in Position
Declaration
Swift
func removePositionChangeListener(listener: PositionChangeListener)
Parameters
listener
A listener to changes in position
-
Add a listener to changes in Position animation
Declaration
Swift
func addPositionAnimationListener(listener: PositionAnimationListener)
Parameters
listener
A listener to changes in position animation
-
Remove listener from changes in Position animation
Declaration
Swift
func removePositionAnimationListener(listener: PositionAnimationListener)
Parameters
listener
A listener to changes in position animation