CompassWidget

class CompassWidget(    context: Context,     widgetPosition: WidgetPosition = WidgetPosition.TOP_RIGHT,     marginLeft: Float = 10.0f,     marginTop: Float = 130.0f,     marginRight: Float = 10.0f,     marginBottom: Float = 10.0f)

A widget to show the compass on the map.

Constructors

Link copied to clipboard
fun CompassWidget(    context: Context,     widgetPosition: WidgetPosition = WidgetPosition.TOP_RIGHT,     marginLeft: Float = 10.0f,     marginTop: Float = 130.0f,     marginRight: Float = 10.0f,     marginBottom: Float = 10.0f)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun updateBearing(bearing: Float)

Update the compass bearing.