Compass Widget
class CompassWidget(context: Context, position: WidgetPosition, marginX: Float, marginY: Float) : BitmapWidget
Content copied to clipboard
Widget shows compass. Positioned in the top right corner by default.
Parameters
marginX
horizontal margin in pixels
marginY
vertical margin in pixels
position
position of compass
Constructors
CompassWidget
Link copied to clipboard
fun CompassWidget(context: Context, position: WidgetPosition = WidgetPosition(
horizontal = WidgetPosition.Horizontal.RIGHT,
vertical = WidgetPosition.Vertical.TOP,
), marginX: Float = 20f, marginY: Float = 20f)
Content copied to clipboard
position of compass
Functions
setRotation
Link copied to clipboard
setTranslation
Link copied to clipboard
open override fun setTranslation(translationX: Float, translationY: Float)
Content copied to clipboard
updateBitmap
Link copied to clipboard