Widget

abstract class Widget

Base class for widgets displayed on top of the map.

Functions

getPosition
Link copied to clipboard
abstract fun getPosition(): WidgetPosition

Get the current position of the widget.

getRotation
Link copied to clipboard
abstract fun getRotation(): Float

Get absolute rotation of widget in degrees.

setPosition
Link copied to clipboard
abstract fun setPosition(widgetPosition: WidgetPosition)

Update the widget to the new position.

setRotation
Link copied to clipboard
abstract fun setRotation(angleDegrees: Float)

Set the absolute rotation of widget in degrees.

setTranslation
Link copied to clipboard
abstract fun setTranslation(translateX: Float, translateY: Float)

Set the translation of the widget in pixels, relative to it's current position.

Inheritors

BitmapWidget
Link copied to clipboard