Package com.mapbox.maps.plugin.viewport

Types

CompletionListener
Link copied to clipboard
fun interface CompletionListener

A listener that's notified when the action is completed.

ViewportPlugin
Link copied to clipboard
interface ViewportPlugin : MapPlugin

The ViewportPlugin provides a structured approach to organizing camera management logic into states and transitions between them.

ViewportPluginImpl
Link copied to clipboard
class ViewportPluginImpl(handler: Handler) : ViewportPlugin

Mapbox default implementation for ViewportPlugin.

ViewportStatus
Link copied to clipboard
sealed class ViewportStatus

Represents the status of the viewport.

ViewportStatusObserver
Link copied to clipboard
fun interface ViewportStatusObserver

Observer that gets notified whenever ViewportStatus changes.

Properties

const val DEFAULT_FOLLOW_PUCK_VIEWPORT_STATE_PITCH: Double = 45.0

The default pitch value for the follow puck viewport state.

DEFAULT_FOLLOW_PUCK_VIEWPORT_STATE_ZOOM
Link copied to clipboard
const val DEFAULT_FOLLOW_PUCK_VIEWPORT_STATE_ZOOM: Double = 16.35

The default zoom value for the follow puck viewport state.

DEFAULT_STATE_ANIMATION_DURATION_MS
Link copied to clipboard
const val DEFAULT_STATE_ANIMATION_DURATION_MS: Long = 1000L

The default duration of the generated transitions set for the frame transition options.

DEFAULT_TRANSITION_MAX_DURATION_MS
Link copied to clipboard
const val DEFAULT_TRANSITION_MAX_DURATION_MS: Long = 3500L

The default maximum duration of the generated transitions set for the state transition options, including delays between animators and their respective durations.

viewport
Link copied to clipboard
@get:JvmName(name = "getViewport")
val MapPluginProviderDelegate.viewport: ViewportPlugin

Extension val for MapView to get the ViewportPlugin instance.