Package 

Class AnimationUtil


  • 
    public class AnimationUtil
    
                        

    Animation utilities for markers with Maps API.

    • Method Summary

      Modifier and Type Method Description
      static void animateMarkerTo(Marker marker, LatLng finalPosition) Animates a marker from it's current position to the provided finalPosition
      static void animateMarkerTo(Marker marker, LatLng finalPosition, long durationInMs) Animates a marker from its current position to the provided finalPosition.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • animateMarkerTo

         static void animateMarkerTo(Marker marker, LatLng finalPosition)

        Animates a marker from it's current position to the provided finalPosition

        Parameters:
        marker - marker to animate
        finalPosition - the final position of the marker after the animation
      • animateMarkerTo

         static void animateMarkerTo(Marker marker, LatLng finalPosition, long durationInMs)

        Animates a marker from its current position to the provided finalPosition.

        Parameters:
        marker - marker to animate
        finalPosition - the final position of the marker after the animation
        durationInMs - the duration of the animation in milliseconds