Map View
open class MapView : FrameLayout, MapPluginProviderDelegate, MapControllable
Content copied to clipboard
A MapView provides an embeddable map interface. You use this class to display map information and to manipulate the map contents from your application. You can center the map on a given coordinate, specify the size of the area you want to display, and style the features of the map to fit your application's use case.
Use of MapView requires a Mapbox API access token. Obtain an access token on the Mapbox account page.
<strong>Warning:</strong> Please note that you are responsible for getting permission to use the map data, and for ensuring your use adheres to the relevant terms of use.
Constructors
MapView
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
MapView
Link copied to clipboard
MapView
Link copied to clipboard
Build a MapView with a Context object, a AttributeSet object, and an Int which represents a style resource file.
Types
OnSnapshotReady
Link copied to clipboard
fun fun interface OnSnapshotReady
Content copied to clipboard
Interface for getting snapshot result Bitmap.
Functions
addChildrenForAccessibility
Link copied to clipboard
addExtraDataToAccessibilityNodeInfo
Link copied to clipboard
open override fun addExtraDataToAccessibilityNodeInfo(p0: AccessibilityNodeInfo, p1: String, p2: Bundle?)
Content copied to clipboard
addFocusables
Link copied to clipboard
addKeyboardNavigationClusters
Link copied to clipboard
open override fun addKeyboardNavigationClusters(p0: MutableCollection<View>, p1: Int)
Content copied to clipboard
addOnAttachStateChangeListener
Link copied to clipboard
open fun addOnAttachStateChangeListener(p0: View.OnAttachStateChangeListener)
Content copied to clipboard
addOnLayoutChangeListener
Link copied to clipboard
addOnUnhandledKeyEventListener
Link copied to clipboard
open fun addOnUnhandledKeyEventListener(p0: View.OnUnhandledKeyEventListener)
Content copied to clipboard
addStatesFromChildren
Link copied to clipboard
addTouchables
Link copied to clipboard
addView
Link copied to clipboard
addViewInLayout
Link copied to clipboard
open fun addViewInLayout(p0: View, p1: Int, p2: ViewGroup.LayoutParams): Boolean
Content copied to clipboard
open fun addViewInLayout(p0: View, p1: Int, p2: ViewGroup.LayoutParams, p3: Boolean): Boolean
Content copied to clipboard
animate
Link copied to clipboard
announceForAccessibility
Link copied to clipboard
attachLayoutAnimationParameters
Link copied to clipboard
open fun attachLayoutAnimationParameters(p0: View, p1: ViewGroup.LayoutParams, p2: Int, p3: Int)
Content copied to clipboard
attachViewToParent
Link copied to clipboard
open fun attachViewToParent(p0: View, p1: Int, p2: ViewGroup.LayoutParams)
Content copied to clipboard
autofill
Link copied to clipboard
awakenScrollBars
Link copied to clipboard
bringChildToFront
Link copied to clipboard
bringToFront
Link copied to clipboard
open fun bringToFront()
Content copied to clipboard
buildDrawingCache
Link copied to clipboard
open fun buildDrawingCache()
Content copied to clipboard
buildLayer
Link copied to clipboard
open fun buildLayer()
Content copied to clipboard
callOnClick
Link copied to clipboard
canAnimate
Link copied to clipboard
cancelDragAndDrop
Link copied to clipboard
fun cancelDragAndDrop()
Content copied to clipboard
cancelLongPress
Link copied to clipboard
open fun cancelLongPress()
Content copied to clipboard
cancelPendingInputEvents
Link copied to clipboard
fun cancelPendingInputEvents()
Content copied to clipboard
canResolveLayoutDirection
Link copied to clipboard
canResolveTextAlignment
Link copied to clipboard
canResolveTextDirection
Link copied to clipboard
canScrollHorizontally
Link copied to clipboard
canScrollVertically
Link copied to clipboard
checkInputConnectionProxy
Link copied to clipboard
checkLayoutParams
Link copied to clipboard
childDrawableStateChanged
Link copied to clipboard
childHasTransientStateChanged
Link copied to clipboard
cleanupLayoutState
Link copied to clipboard
clearAnimation
Link copied to clipboard
open fun clearAnimation()
Content copied to clipboard
clearChildFocus
Link copied to clipboard
clearDisappearingChildren
Link copied to clipboard
open fun clearDisappearingChildren()
Content copied to clipboard
clearFocus
Link copied to clipboard
open override fun clearFocus()
Content copied to clipboard
computeHorizontalScrollExtent
Link copied to clipboard
computeHorizontalScrollOffset
Link copied to clipboard
computeHorizontalScrollRange
Link copied to clipboard
computeScroll
Link copied to clipboard
open fun computeScroll()
Content copied to clipboard
computeSystemWindowInsets
Link copied to clipboard
open fun computeSystemWindowInsets(p0: WindowInsets, p1: Rect): WindowInsets
Content copied to clipboard
computeVerticalScrollExtent
Link copied to clipboard
computeVerticalScrollOffset
Link copied to clipboard
computeVerticalScrollRange
Link copied to clipboard
createAccessibilityNodeInfo
Link copied to clipboard
createContextMenu
Link copied to clipboard
createPlugin
Link copied to clipboard
destroyDrawingCache
Link copied to clipboard
open fun destroyDrawingCache()
Content copied to clipboard
detachAllViewsFromParent
Link copied to clipboard
open fun detachAllViewsFromParent()
Content copied to clipboard
detachViewFromParent
Link copied to clipboard
detachViewsFromParent
Link copied to clipboard
dispatchApplyWindowInsets
Link copied to clipboard
open override fun dispatchApplyWindowInsets(p0: WindowInsets): WindowInsets
Content copied to clipboard
dispatchCapturedPointerEvent
Link copied to clipboard
dispatchConfigurationChanged
Link copied to clipboard
dispatchDisplayHint
Link copied to clipboard
dispatchDragEvent
Link copied to clipboard
dispatchDraw
Link copied to clipboard
dispatchDrawableHotspotChanged
Link copied to clipboard
dispatchFinishTemporaryDetach
Link copied to clipboard
open override fun dispatchFinishTemporaryDetach()
Content copied to clipboard
dispatchFreezeSelfOnly
Link copied to clipboard
dispatchGenericFocusedEvent
Link copied to clipboard
dispatchGenericMotionEvent
Link copied to clipboard
dispatchGenericPointerEvent
Link copied to clipboard
dispatchHoverEvent
Link copied to clipboard
dispatchKeyEvent
Link copied to clipboard
dispatchKeyEventPreIme
Link copied to clipboard
dispatchKeyShortcutEvent
Link copied to clipboard
dispatchNestedFling
Link copied to clipboard
dispatchNestedPreFling
Link copied to clipboard
dispatchNestedPrePerformAccessibilityAction
Link copied to clipboard
open fun dispatchNestedPrePerformAccessibilityAction(p0: Int, p1: Bundle): Boolean
Content copied to clipboard
dispatchNestedPreScroll
Link copied to clipboard
dispatchNestedScroll
Link copied to clipboard
dispatchPointerCaptureChanged
Link copied to clipboard
dispatchPopulateAccessibilityEvent
Link copied to clipboard
open fun dispatchPopulateAccessibilityEvent(p0: AccessibilityEvent): Boolean
Content copied to clipboard
dispatchProvideAutofillStructure
Link copied to clipboard
open override fun dispatchProvideAutofillStructure(p0: ViewStructure, p1: Int)
Content copied to clipboard
dispatchProvideStructure
Link copied to clipboard
dispatchRestoreInstanceState
Link copied to clipboard
open override fun dispatchRestoreInstanceState(p0: SparseArray<Parcelable>)
Content copied to clipboard
dispatchSaveInstanceState
Link copied to clipboard
dispatchSetActivated
Link copied to clipboard
dispatchSetPressed
Link copied to clipboard
dispatchSetSelected
Link copied to clipboard
dispatchStartTemporaryDetach
Link copied to clipboard
open override fun dispatchStartTemporaryDetach()
Content copied to clipboard
dispatchSystemUiVisibilityChanged
Link copied to clipboard
dispatchThawSelfOnly
Link copied to clipboard
dispatchTouchEvent
Link copied to clipboard
dispatchTrackballEvent
Link copied to clipboard
dispatchUnhandledMove
Link copied to clipboard
dispatchVisibilityChanged
Link copied to clipboard
dispatchWindowFocusChanged
Link copied to clipboard
dispatchWindowInsetsAnimationEnd
Link copied to clipboard
open override fun dispatchWindowInsetsAnimationEnd(p0: WindowInsetsAnimation)
Content copied to clipboard
dispatchWindowInsetsAnimationPrepare
Link copied to clipboard
open override fun dispatchWindowInsetsAnimationPrepare(p0: WindowInsetsAnimation)
Content copied to clipboard
dispatchWindowInsetsAnimationProgress
Link copied to clipboard
open override fun dispatchWindowInsetsAnimationProgress(p0: WindowInsets, p1: MutableList<WindowInsetsAnimation>): WindowInsets
Content copied to clipboard
dispatchWindowInsetsAnimationStart
Link copied to clipboard
open override fun dispatchWindowInsetsAnimationStart(p0: WindowInsetsAnimation, p1: WindowInsetsAnimation.Bounds): WindowInsetsAnimation.Bounds
Content copied to clipboard
dispatchWindowSystemUiVisiblityChanged
Link copied to clipboard
dispatchWindowVisibilityChanged
Link copied to clipboard
drawableHotspotChanged
Link copied to clipboard
drawableStateChanged
Link copied to clipboard
open override fun drawableStateChanged()
Content copied to clipboard
endViewTransition
Link copied to clipboard
findViewById
Link copied to clipboard
findViewsWithText
Link copied to clipboard
open override fun findViewsWithText(p0: ArrayList<View>, p1: CharSequence, p2: Int)
Content copied to clipboard
findViewWithTag
Link copied to clipboard
fitSystemWindows
Link copied to clipboard
focusableViewAvailable
Link copied to clipboard
focusSearch
Link copied to clipboard
forceHasOverlappingRendering
Link copied to clipboard
forceLayout
Link copied to clipboard
open fun forceLayout()
Content copied to clipboard
gatherTransparentRegion
Link copied to clipboard
generateDefaultLayoutParams
Link copied to clipboard
open override fun generateDefaultLayoutParams(): FrameLayout.LayoutParams
Content copied to clipboard
generateLayoutParams
Link copied to clipboard
open override fun generateLayoutParams(p0: AttributeSet): FrameLayout.LayoutParams
Content copied to clipboard
open override fun generateLayoutParams(p0: ViewGroup.LayoutParams): ViewGroup.LayoutParams
Content copied to clipboard
getAccessibilityClassName
Link copied to clipboard
getAccessibilityDelegate
Link copied to clipboard
getAccessibilityLiveRegion
Link copied to clipboard
getAccessibilityNodeProvider
Link copied to clipboard
getAccessibilityPaneTitle
Link copied to clipboard
getAccessibilityTraversalAfter
Link copied to clipboard
getAccessibilityTraversalBefore
Link copied to clipboard
getAnimation
Link copied to clipboard
getAnimationMatrix
Link copied to clipboard
getApplicationWindowToken
Link copied to clipboard
getAttributeResolutionStack
Link copied to clipboard
getAttributeSourceResourceMap
Link copied to clipboard
getAutofillHints
Link copied to clipboard
getAutofillId
Link copied to clipboard
getAutofillType
Link copied to clipboard
getAutofillValue
Link copied to clipboard
getBackground
Link copied to clipboard
getBackgroundTintBlendMode
Link copied to clipboard
getBackgroundTintList
Link copied to clipboard
getBackgroundTintMode
Link copied to clipboard
getBaseline
Link copied to clipboard
getBottomFadingEdgeStrength
Link copied to clipboard
getBottomPaddingOffset
Link copied to clipboard
getCameraDistance
Link copied to clipboard
getChildAt
Link copied to clipboard
getChildCount
Link copied to clipboard
getChildDrawingOrder
Link copied to clipboard
getChildStaticTransformation
Link copied to clipboard
open fun getChildStaticTransformation(p0: View, p1: Transformation): Boolean
Content copied to clipboard
getChildVisibleRect
Link copied to clipboard
open override fun getChildVisibleRect(p0: View, p1: Rect, p2: Point): Boolean
Content copied to clipboard
getClipBounds
Link copied to clipboard
getClipChildren
Link copied to clipboard
getClipToOutline
Link copied to clipboard
getClipToPadding
Link copied to clipboard
getConsiderGoneChildrenWhenMeasuring
Link copied to clipboard
getContentCaptureSession
Link copied to clipboard
getContentDescription
Link copied to clipboard
getContext
Link copied to clipboard
getContextMenuInfo
Link copied to clipboard
getDefaultFocusHighlightEnabled
Link copied to clipboard
getDescendantFocusability
Link copied to clipboard
getDisplay
Link copied to clipboard
getDrawableState
Link copied to clipboard
getDrawingCache
Link copied to clipboard
getDrawingCacheBackgroundColor
Link copied to clipboard
getDrawingCacheQuality
Link copied to clipboard
getDrawingRect
Link copied to clipboard
getDrawingTime
Link copied to clipboard
getElevation
Link copied to clipboard
getExplicitStyle
Link copied to clipboard
getFilterTouchesWhenObscured
Link copied to clipboard
getFitsSystemWindows
Link copied to clipboard
getFocusable
Link copied to clipboard
getFocusables
Link copied to clipboard
getFocusedChild
Link copied to clipboard
getFocusedRect
Link copied to clipboard
getForeground
Link copied to clipboard
getForegroundGravity
Link copied to clipboard
getForegroundTintBlendMode
Link copied to clipboard
getForegroundTintList
Link copied to clipboard
getForegroundTintMode
Link copied to clipboard
getGlobalVisibleRect
Link copied to clipboard
getHandler
Link copied to clipboard
getHasOverlappingRendering
Link copied to clipboard
getHitRect
Link copied to clipboard
getHorizontalFadingEdgeLength
Link copied to clipboard
getHorizontalScrollbarHeight
Link copied to clipboard
getHorizontalScrollbarThumbDrawable
Link copied to clipboard
getHorizontalScrollbarTrackDrawable
Link copied to clipboard
getImportantForAccessibility
Link copied to clipboard
getImportantForAutofill
Link copied to clipboard
getImportantForContentCapture
Link copied to clipboard
getKeepScreenOn
Link copied to clipboard
getKeyDispatcherState
Link copied to clipboard
getLabelFor
Link copied to clipboard
getLayerType
Link copied to clipboard
getLayoutAnimation
Link copied to clipboard
getLayoutAnimationListener
Link copied to clipboard
getLayoutDirection
Link copied to clipboard
getLayoutMode
Link copied to clipboard
getLayoutParams
Link copied to clipboard
getLayoutTransition
Link copied to clipboard
getLeftFadingEdgeStrength
Link copied to clipboard
getLeftPaddingOffset
Link copied to clipboard
getLocalVisibleRect
Link copied to clipboard
getLocationInSurface
Link copied to clipboard
getLocationInWindow
Link copied to clipboard
getLocationOnScreen
Link copied to clipboard
getMapboxMap
Link copied to clipboard
getMeasureAllChildren
Link copied to clipboard
getMeasuredHeight
Link copied to clipboard
getMeasuredHeightAndState
Link copied to clipboard
getMeasuredState
Link copied to clipboard
getMeasuredWidth
Link copied to clipboard
getMeasuredWidthAndState
Link copied to clipboard
getMinimumHeight
Link copied to clipboard
getMinimumWidth
Link copied to clipboard
getNestedScrollAxes
Link copied to clipboard
getNextClusterForwardId
Link copied to clipboard
getNextFocusDownId
Link copied to clipboard
getNextFocusForwardId
Link copied to clipboard
getNextFocusLeftId
Link copied to clipboard
getNextFocusRightId
Link copied to clipboard
getNextFocusUpId
Link copied to clipboard
getOnFocusChangeListener
Link copied to clipboard
getOutlineAmbientShadowColor
Link copied to clipboard
getOutlineProvider
Link copied to clipboard
getOutlineSpotShadowColor
Link copied to clipboard
getOverlay
Link copied to clipboard
getOverScrollMode
Link copied to clipboard
getPaddingBottom
Link copied to clipboard
getPaddingEnd
Link copied to clipboard
getPaddingLeft
Link copied to clipboard
getPaddingRight
Link copied to clipboard
getPaddingStart
Link copied to clipboard
getPaddingTop
Link copied to clipboard
getParent
Link copied to clipboard
getParentForAccessibility
Link copied to clipboard
getPersistentDrawingCache
Link copied to clipboard
getPointerIcon
Link copied to clipboard
getResources
Link copied to clipboard
getRevealOnFocusHint
Link copied to clipboard
getRightFadingEdgeStrength
Link copied to clipboard
getRightPaddingOffset
Link copied to clipboard
getRootView
Link copied to clipboard
getRootWindowInsets
Link copied to clipboard
getRotation
Link copied to clipboard
getRotationX
Link copied to clipboard
getRotationY
Link copied to clipboard
getScrollBarDefaultDelayBeforeFade
Link copied to clipboard
getScrollBarFadeDuration
Link copied to clipboard
getScrollBarSize
Link copied to clipboard
getScrollBarStyle
Link copied to clipboard
getScrollIndicators
Link copied to clipboard
getScrollX
Link copied to clipboard
getScrollY
Link copied to clipboard
getSolidColor
Link copied to clipboard
getSourceLayoutResId
Link copied to clipboard
getStateDescription
Link copied to clipboard
getStateListAnimator
Link copied to clipboard