Package com.mapbox.maps.plugin.animation

Types

CameraAnimationsLifecycleListener
Link copied to clipboard

Interface responsible to notify about any CameraAnimator lifecycle events registered in CameraAnimationsPlugin. Those events are:

  • animator is about to start

  • animator is about to cancel already running animator of same type

  • animator is about to end

  • animator is about to cancel

interface CameraAnimationsLifecycleListener
CameraAnimationsPlugin
Link copied to clipboard

Interface to interact with Camera Animations plugin

interface CameraAnimationsPlugin : MapPlugin
CameraAnimatorChangeListener
Link copied to clipboard

Interface to get updated animator values.

fun fun interface CameraAnimatorChangeListener<T>
CameraAnimatorOptions
Link copied to clipboard

Class responsible for storing options used by all CameraAnimator's from CameraAnimationsPlugin. CameraAnimatorOptions.Builder should be used to create options object via DSL function cameraAnimatorOptions.

class CameraAnimatorOptions<T>
CameraAnimatorsFactory
Link copied to clipboard

CameraAnimatorsFactory stands for storing default animation options. Provides default animators for "easeTo", "scaleBy", "pitchBy", "moveBy", "rotateBy" animations

class CameraAnimatorsFactory
CameraAnimatorType
Link copied to clipboard

Enum class representing all possible camera animator types.

enum CameraAnimatorType : Enum<CameraAnimatorType>
MapAnimationOptions
Link copied to clipboard

Map transition options which are used to configure animation if using high-level API like CameraAnimationsPlugin.easeTo, CameraAnimationsPlugin.flyTo etc MapAnimationOptions.Builder should be used to create options object via DSL function mapAnimationOptions.

class MapAnimationOptions
MapAnimationOwnerRegistry
Link copied to clipboard

Registry for all plugins using Camera Animation system. This means that all animations controlled by any plugin will create animators with their owner.

object MapAnimationOwnerRegistry

Functions

easeTo
Link copied to clipboard

Extension easeTo() for MapTransformDelegate Ease the map camera to a given camera options and animation options.

fun MapTransformDelegate.easeTo(cameraOptions: CameraOptions, animationOptions: MapAnimationOptions?): Unit?
flyTo
Link copied to clipboard

Extension flyTo() function for MapTransformDelegate Fly the map camera to a given camera options.

fun MapTransformDelegate.flyTo(cameraOptions: CameraOptions, animationOptions: MapAnimationOptions?): Unit?
getCameraAnimationsPlugin
Link copied to clipboard

Extension function for MapView to get the Camera Animations plugin instance.

moveBy
Link copied to clipboard

Extension moveBy() function for MapTransformDelegate Move the map by a given screen coordinate with optional animation.

fun MapTransformDelegate.moveBy(screenCoordinate: ScreenCoordinate, animationOptions: MapAnimationOptions?): Unit?
pitchBy
Link copied to clipboard

Extension pitchBy() function for MapTransformDelegate Pitch the map by with optional animation.

fun MapTransformDelegate.pitchBy(pitch: Double, animationOptions: MapAnimationOptions?): Unit?
rotateBy
Link copied to clipboard

Extension rotateBy() function for MapTransformDelegate Rotate the map by with optional animation.

fun MapTransformDelegate.rotateBy(first: ScreenCoordinate, second: ScreenCoordinate, animationOptions: MapAnimationOptions?): Unit?
scaleBy
Link copied to clipboard

Extension scaleBy() function for MapTransformDelegate Scale the map by with optional animation.

fun MapTransformDelegate.scaleBy(amount: Double, screenCoordinate: ScreenCoordinate?, animationOptions: MapAnimationOptions?): Unit?