CompassViewPlugin

Concrete implementation of CompassPlugin.

open class CompassViewPlugin(viewImplProvider: (Context) -> CompassViewImpl, fadeAnimator: ValueAnimator) : CompassSettingsBase, CompassPlugin

Constructors

CompassViewPlugin
Link copied to clipboard
fun CompassViewPlugin(viewImplProvider: (Context) -> CompassViewImpl, fadeAnimator: ValueAnimator)

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion

Functions

addCompassClickListener
Link copied to clipboard

Add an OnClick listener to the presenter.

open override fun addCompassClickListener(onClickListener: OnCompassClickListener)
bind
Link copied to clipboard

Bind the ViewPlugin with current map context. This will create a View that will be added to the MapView.

open override fun bind(mapView: FrameLayout, attrs: AttributeSet?, pixelRatio: Float): View
cleanup
Link copied to clipboard

Called when the map is destroyed. Should be used to cleanup plugin resources for that map.

open override fun cleanup()
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getSettings
Link copied to clipboard
open override fun getSettings(): CompassSettings
hashCode
Link copied to clipboard
open override fun hashCode(): Int
initialize
Link copied to clipboard

Called when the plugin is first added to the map.

open override fun initialize()
onCameraMove
Link copied to clipboard

Called whenever camera position changes.

open override fun onCameraMove(lat: Double, lon: Double, zoom: Double, pitch: Double, bearing: Double, padding: Array<Double>?, anchor: Pair<Double, Double>?)
onCompassClicked
Link copied to clipboard

Invoked when the compass view is clicked.

open override fun onCompassClicked()
onDelegateProvider
Link copied to clipboard

Provides all map delegate instances.

open override fun onDelegateProvider(delegateProvider: MapDelegateProvider)
onPluginView
Link copied to clipboard

Provides a view instances returned in bind after it's been added to the MapView.

open override fun onPluginView(view: View)
onStart
Link copied to clipboard

Called whenever activity's/fragment's lifecycle is entering a "started" state.

open override fun onStart()
onStop
Link copied to clipboard

Called whenever activity's/fragment's lifecycle is entering a "stopped" state.

open override fun onStop()
removeCompassClickListener
Link copied to clipboard

Remove an OnClick listener from the presenter.

open override fun removeCompassClickListener(onClickListener: OnCompassClickListener)
toString
Link copied to clipboard
open override fun toString(): String
updateSettings
Link copied to clipboard
open override fun updateSettings(block: CompassSettings.() -> Unit)

Properties

clickable
Link copied to clipboard
open override var clickable: Boolean
enabled
Link copied to clipboard

Defines whether the plugins is enabled or disabled.

open override var enabled: Boolean
fadeWhenFacingNorth
Link copied to clipboard
open override var fadeWhenFacingNorth: Boolean
image
Link copied to clipboard
open override var image: Drawable?
marginBottom
Link copied to clipboard
open override var marginBottom: Float
marginLeft
Link copied to clipboard
open override var marginLeft: Float
marginRight
Link copied to clipboard
open override var marginRight: Float
marginTop
Link copied to clipboard
open override var marginTop: Float
opacity
Link copied to clipboard
open override var opacity: Float
position
Link copied to clipboard
open override var position: Int
rotation
Link copied to clipboard
open override var rotation: Float
visibility
Link copied to clipboard
open override var visibility: Boolean