Compass Plugin
interface CompassPlugin : ViewPlugin, MapCameraPlugin, LifecyclePlugin, CompassSettingsInterface
Content copied to clipboard
Presenter interface for the Compass.
Functions
add Compass Click Listener
Link copied to clipboard
abstract fun addCompassClickListener(onClickListener: OnCompassClickListener)
Content copied to clipboard
Add an OnClick listener to the presenter.
bind
Link copied to clipboard
abstract fun bind(mapView: FrameLayout, attrs: AttributeSet?, pixelRatio: Float): View
Content copied to clipboard
Bind a view instance
get Settings
Link copied to clipboard
Get current compass configuration.
initialize
Link copied to clipboard
open fun initialize()
Content copied to clipboard
Called when the plugin is first added to the map.
on Camera Move
Link copied to clipboard
abstract fun onCameraMove(lat: Double, lon: Double, zoom: Double, pitch: Double, bearing: Double, padding: DoubleArray)
Content copied to clipboard
Called whenever camera position changes.
on Compass Clicked
Link copied to clipboard
abstract fun onCompassClicked()
Content copied to clipboard
Invoked when the compass view is clicked.
on Delegate Provider
Link copied to clipboard
Provides all map delegate instances.
on Plugin View
Link copied to clipboard
Provides a view instances returned in inflate after it's been added to the MapView.
remove Compass Click Listener
Link copied to clipboard
abstract fun removeCompassClickListener(onClickListener: OnCompassClickListener)
Content copied to clipboard
Remove an OnClick listener from the presenter.
update Settings
Link copied to clipboard
Update compass configuration, the update will be applied to the plugin automatically.
Properties
fadeWhenFacingNorth
Link copied to clipboard
marginBottom
Link copied to clipboard
marginLeft
Link copied to clipboard
marginRight
Link copied to clipboard
visibility
Link copied to clipboard
Inheritors
CompassViewPlugin
Link copied to clipboard