Compass View Plugin
open class CompassViewPlugin(viewImplProvider: (Context) -> CompassViewImpl, fadeAnimator: ValueAnimator, mainHandler: Handler) : CompassSettingsBase, CompassPlugin
Content copied to clipboard
Concrete implementation of CompassPlugin.
Constructors
CompassViewPlugin
Link copied to clipboard
fun CompassViewPlugin(viewImplProvider: (Context) -> CompassViewImpl = { CompassViewImpl(it) }, fadeAnimator: ValueAnimator = ValueAnimator.ofFloat(1f, 0f), mainHandler: Handler = Handler(Looper.getMainLooper()))
Content copied to clipboard
Types
Functions
add Compass Click Listener
Link copied to clipboard
open override fun addCompassClickListener(onClickListener: OnCompassClickListener)
Content copied to clipboard
Add an OnClick listener to the presenter.
bind
Link copied to clipboard
open override fun bind(mapView: FrameLayout, attrs: AttributeSet?, pixelRatio: Float): View
Content copied to clipboard
Bind the ViewPlugin with current map context. This will create a View that will be added to the MapView.
get Settings
Link copied to clipboard
initialize
Link copied to clipboard
open override fun initialize()
Content copied to clipboard
Called when the plugin is first added to the map.
on Camera Move
Link copied to clipboard
open override fun onCameraMove(lat: Double, lon: Double, zoom: Double, pitch: Double, bearing: Double, padding: DoubleArray)
Content copied to clipboard
Called whenever camera position changes. Could be invoked from any thread when map starts rendering.
on Compass Clicked
Link copied to clipboard
open override fun onCompassClicked()
Content copied to clipboard
Invoked when the compass view is clicked.
on Delegate Provider
Link copied to clipboard
open override fun onDelegateProvider(delegateProvider: MapDelegateProvider)
Content copied to clipboard
Provides all map delegate instances.
on Plugin View
Link copied to clipboard
Provides a view instances returned in bind after it's been added to the MapView.
remove Compass Click Listener
Link copied to clipboard
open override fun removeCompassClickListener(onClickListener: OnCompassClickListener)
Content copied to clipboard
Remove an OnClick listener from the presenter.
update Settings
Link copied to clipboard
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