Class LocationUpdate

java.lang.Object
com.trimblemaps.mapsdk.location.LocationUpdate

public class LocationUpdate extends Object
A class that contains the location update configuration.
  • Method Details

    • getLocation

      @NonNull public android.location.Location getLocation()
      Returns:
      target location of the transition
    • getIntermediatePoints

      @NonNull public List<android.location.Location> getIntermediatePoints()
      Returns:
      list of locations that are on the path to the target location for animation interpolation
    • getAnimationDuration

      @Nullable public Long getAnimationDuration()
      Returns:
      If set, all of the transitions to this update (puck's and possibly camera's if tracking mode is engaged) will have the provided duration. If null, the duration will be calculated internally.

      LocationComponentOptions.Builder.trackingAnimationDurationMultiplier(float) is ignored if this value is provided.

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object