estimote-indoor-sdk-android / com.estimote.indoorsdk.algorithm / IndoorLocationManager

IndoorLocationManager

interface IndoorLocationManager

Main object for estimating position from scanned beacons. You should provide it with scanned beacons using method IndoorLocationManager.onScannedPackets Data about scanned beacons can be acquired from from BeaconManager Computed (x,y) coordinates will be delivered to your listener - don't forget to set it using IndoorLocationManager.setOnPositionUpdateListener! You can use EstimoteIndoorHelper.setupIndoorPositioning to quickly setup listeners between view, manager and beacon scanner.

See Also

OnPositionUpdateListener

Author
Pawel Dylag (pawel.dylag@estimote.com)

Functions

onScannedBeaconPackets

abstract fun onScannedBeaconPackets(beaconPackets: List<Beacon>): Unit

This is probably the most important method here. Use it to pass scanned beacon data. You can do the scanning using our BeaconManager class.

onScannedLocationPackets

abstract fun onScannedLocationPackets(locationPackets: List<EstimoteLocation>): Unit

This is probably the most important method here. Use it to pass scanned beacon data. You can do the scanning using our BeaconManager class.

setOnPositionUpdateListener

abstract fun setOnPositionUpdateListener(onPositionUpdateListener: OnPositionUpdateListener): Unit

In order to get estimated position from manager, you need to add listener to it. Use this method to do this. Each consequent invocation of this function will override previous listener.

startPositioning

abstract fun startPositioning(): Unit

Notifies Manager to start it's positioning algorithms. Make sure to call this method before starting scanning.

stopPositioning

abstract fun stopPositioning(): Unit

Stops positioning algorithms. Make sure to use this method when you are not using positioning.