estimote-indoor-sdk-android / com.estimote.indoorsdk.view / IndoorLocationView

IndoorLocationView

class IndoorLocationView : View

Main view for drawing location (walls, beacons, objects, etc.) and user position on it. You need to declare it in your XML layout file first and then traditionally bind it to an object.

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

Constructors

<init>

IndoorLocationView(context: Context)
IndoorLocationView(context: Context, attrs: AttributeSet)

Functions

hidePosition

fun hidePosition(): Unit

Hides the position (user avatar) from view until the next updatePosition is called.

onDraw

fun onDraw(canvas: Canvas): Unit

setBorderPaint

fun setBorderPaint(paint: Paint): Unit

Sets the color of location's walls.

setCustomPoints

fun setCustomPoints(points: List<LocationPosition>): Unit

Draws set of custom points on view. This method is used rather for debugging, but you can draw your custom points with it.

setLocation

fun setLocation(location: Location): Unit

Set the Location object for this view. You need to provide the view with location to draw. You can acquire Location objects from IndoorCloudManager

updatePosition

fun updatePosition(newPosition: LocationPosition): Unit

Call this method when you get the position from IndoorLocationManager. This will update user's icon position on this view.