Package com.mapbox.maps.plugin

Types

ContextBinder
Link copied to clipboard

Interface to bind a View and underlying context

fun fun interface ContextBinder
InvalidPluginConfigurationException
Link copied to clipboard

Exception thrown when a plugin configuration is invalid.

class InvalidPluginConfigurationException(exceptionMessage: String) : Exception
InvalidViewPluginHostException
Link copied to clipboard

Exception thrown when a ViewPlugin is loaded in a context that doesn't have a view hierarchy associated.

class InvalidViewPluginHostException(message: String) : Exception
LifecyclePlugin
Link copied to clipboard

Interface for plugins interacting with the lifecycle of the hosting context.

interface LifecyclePlugin
LocationPuck
Link copied to clipboard

Sealed class representing a location-puck.

sealed class LocationPuck
LocationPuck2D
Link copied to clipboard

Definition of a location_puck_2_d.

data class LocationPuck2D(topImage: Drawable?, bearingImage: Drawable?, shadowImage: Drawable?, scaleExpression: String?) : LocationPuck
LocationPuck3D
Link copied to clipboard

Definition of a location_puck_3_d.

data class LocationPuck3D(modelUri: String, position: List<Float>, modelOpacity: Float, modelScale: List<Float>, modelScaleExpression: String?, modelRotation: List<Float>) : LocationPuck
MapCameraPlugin
Link copied to clipboard

Definition for map camera plugins. The map will constantly push current camera position values.

fun fun interface MapCameraPlugin : MapPlugin
MapPlugin
Link copied to clipboard

Parent definition of all Map plugins.

interface MapPlugin
MapSizePlugin
Link copied to clipboard

Plugin interface invoked when the size of map changes.

interface MapSizePlugin
MapStyleObserverPlugin
Link copied to clipboard

Interface for plugins need to be aware of the style change event.

interface MapStyleObserverPlugin
ViewPlugin
Link copied to clipboard

Defines interface of a ViewPlugin.

fun fun interface ViewPlugin : MapPlugin

Properties

PLUGIN_ANNOTATION_CLASS_NAME
Link copied to clipboard

Class name for annotation plugin.

const val PLUGIN_ANNOTATION_CLASS_NAME: String
PLUGIN_ATTRIBUTION_CLASS_NAME
Link copied to clipboard

Class name for map attribution plugin.

const val PLUGIN_ATTRIBUTION_CLASS_NAME: String
PLUGIN_CAMERA_ANIMATIONS_CLASS_NAME
Link copied to clipboard

Class name for camera animations plugin.

const val PLUGIN_CAMERA_ANIMATIONS_CLASS_NAME: String
PLUGIN_COMPASS_CLASS_NAME
Link copied to clipboard

Class name for compass plugin.

const val PLUGIN_COMPASS_CLASS_NAME: String
PLUGIN_GESTURE_CLASS_NAME
Link copied to clipboard

Class name for gestures plugin.

const val PLUGIN_GESTURE_CLASS_NAME: String
PLUGIN_LOCATION_COMPONENT_CLASS_NAME
Link copied to clipboard

Class name for location component plugin.

const val PLUGIN_LOCATION_COMPONENT_CLASS_NAME: String
PLUGIN_LOGO_CLASS_NAME
Link copied to clipboard

Class name for logo plugin.

const val PLUGIN_LOGO_CLASS_NAME: String
PLUGIN_MAPOVERLAY_CLASS_NAME
Link copied to clipboard

Class name for map overlay plugin.

const val PLUGIN_MAPOVERLAY_CLASS_NAME: String
PLUGIN_SCALE_BAR_CLASS_NAME
Link copied to clipboard

Class name for scale bar plugin.

const val PLUGIN_SCALE_BAR_CLASS_NAME: String